测试修正

master
ymnets 4 months ago
parent c95e2fc9f7
commit 4bfaee2ba6

@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EasyCodeTableSetting">
<option name="tableInfoMap">
<map>
<entry key="gp_union.web_news_attachment">
<value>
<TableInfoDTO>
<option name="comment" value="新闻附件表" />
<option name="fullColumn">
<list>
<ColumnInfoDTO>
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="attachmentId" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="新闻ID" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="newsId" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="附件地址" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="attachmentUrl" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
</list>
</option>
<option name="name" value="WebNewsAttachment" />
<option name="preName" value="" />
<option name="saveModelName" value="" />
<option name="savePackageName" value="" />
<option name="savePath" value="" />
<option name="templateGroupName" value="" />
</TableInfoDTO>
</value>
</entry>
<entry key="gp_union.web_qr_code">
<value>
<TableInfoDTO>
<option name="comment" value="官网二维码表" />
<option name="fullColumn">
<list>
<ColumnInfoDTO>
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="qrId" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="qrName1" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="qrName2" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="12表示文件 视频" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="qrType" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="qrId1" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="qrId2" />
<option name="type" value="java.lang.Integer" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="文件名" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="fileName" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
<ColumnInfoDTO>
<option name="comment" value="文件地址" />
<option name="custom" value="false" />
<option name="ext" value="{}" />
<option name="name" value="fileUrl" />
<option name="type" value="java.lang.String" />
</ColumnInfoDTO>
</list>
</option>
<option name="name" value="WebQrCode" />
<option name="preName" value="" />
<option name="saveModelName" value="gp-web" />
<option name="savePackageName" value="com.hc.gpweb" />
<option name="savePath" value="./gp-web/src/main/java/com/hc/gpweb" />
<option name="templateGroupName" value="Code-Jia" />
</TableInfoDTO>
</value>
</entry>
</map>
</option>
</component>
</project>

@ -0,0 +1,124 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.svg" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.svg" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.svg" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.svg" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

@ -5,8 +5,18 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="ef55dc1b-11d9-4203-81db-14a06469a368" name="更改" comment=""> <list default="true" id="ef55dc1b-11d9-4203-81db-14a06469a368" name="更改" comment="">
<change beforePath="$PROJECT_DIR$/../JAVA_MYSQL_HCJXJY/pom.xml" beforeDir="false" afterPath="$PROJECT_DIR$/../JAVA_MYSQL_HCJXJY/pom.xml" afterDir="false" /> <change afterPath="$PROJECT_DIR$/.idea/easyCodeTableSetting.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/.idea/uiDesigner.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/gp-business/src/main/java/com/hc/gpbusiness/mapper/WebQrCodeMapper.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/gp-business/src/main/java/com/hc/gpbusiness/model/WebQrCode.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/gp-business/src/main/java/com/hc/gpbusiness/service/WebQrCodeService.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/gp-business/src/main/java/com/hc/gpbusiness/service/impl/WebQrCodeServiceImpl.java" afterDir="false" />
<change afterPath="$PROJECT_DIR$/gp-business/src/main/resources/mapper/WebQrCodeMapper.xml" afterDir="false" />
<change afterPath="$PROJECT_DIR$/gp-web/src/main/java/com/hc/gpweb/controller/front/FrontQrCodeController.java" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/gp-business/src/main/resources/mapper/WebNewsMapper.xml" beforeDir="false" afterPath="$PROJECT_DIR$/gp-business/src/main/resources/mapper/WebNewsMapper.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/gp-web/src/main/resources/application-dev.yml" beforeDir="false" afterPath="$PROJECT_DIR$/gp-web/src/main/resources/application-dev.yml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/gp-web/src/main/resources/application.yml" beforeDir="false" afterPath="$PROJECT_DIR$/gp-web/src/main/resources/application.yml" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" /> <option name="HIGHLIGHT_CONFLICTS" value="true" />
@ -107,6 +117,7 @@
<workItem from="1731396372121" duration="90000" /> <workItem from="1731396372121" duration="90000" />
<workItem from="1731396540755" duration="630000" /> <workItem from="1731396540755" duration="630000" />
<workItem from="1731404423787" duration="15000" /> <workItem from="1731404423787" duration="15000" />
<workItem from="1732161369130" duration="3297000" />
</task> </task>
<task id="LOCAL-00001" summary="更改表名字"> <task id="LOCAL-00001" summary="更改表名字">
<created>1730470371982</created> <created>1730470371982</created>

@ -0,0 +1,26 @@
package com.hc.gpbusiness.mapper;
import com.hc.gpbusiness.model.WebNewsType;
import com.hc.gpbusiness.model.WebQrCode;
import com.hc.gpcore.utils.tk.mapper.Mapper;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* (WebQrCode)访
*
* @author makejava
* @since 2024-11-21 14:29:03
*/
@Repository
public interface WebQrCodeMapper extends Mapper<WebQrCode> {
List<WebQrCode> queryByAll(String qrName1,
String qrName2,
Integer qrType,
Integer qrId1,
Integer qrId2,String fileName);
}

@ -0,0 +1,60 @@
package com.hc.gpbusiness.model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
@Data
@ApiModel(value = "二维码表")
public class WebQrCode implements Serializable {
private static final long serialVersionUID = 294862655971334716L;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@ApiModelProperty(value = "主键id")
private Integer qrId;
@ApiModelProperty(value = "qrName1")
private String qrName1;
@ApiModelProperty(value = "qrName2")
private String qrName2;
/**
* 12
*/
@ApiModelProperty(value = "12表示文件 视频")
private Integer qrType;
@ApiModelProperty(value = "qrId1")
private Integer qrId1;
@ApiModelProperty(value = "qrId2")
private Integer qrId2;
/**
*
*/
@ApiModelProperty(value = "文件名")
private String fileName;
/**
*
*/
@ApiModelProperty(value = "文件地址")
private String fileUrl;
}

@ -0,0 +1,64 @@
package com.hc.gpbusiness.service;
import com.github.pagehelper.PageInfo;
import com.hc.gpbusiness.model.WebQrCode;
import org.springframework.stereotype.Component;
/**
* (WebQrCode)
*
* @author makejava
* @since 2024-11-21 14:29:52
*/
@Component
public interface WebQrCodeService {
/**
* ID
*
* @param qrId
* @return
*/
WebQrCode queryById(Integer qrId);
/**
*
*
* @param webQrCode
* @return
*/
WebQrCode insert(WebQrCode webQrCode);
/**
*
*
* @param webQrCode
* @return
*/
WebQrCode update(WebQrCode webQrCode);
/**
*
*
* @param qrId
* @return
*/
boolean deleteById(Integer qrId);
/**
*
*
* @param page
* @param size
* @return
*/
PageInfo queryAllByLimit(int page, int size);
PageInfo queryByAll(int page, int size,String qrName1,
String qrName2,
Integer qrType,
Integer qrId1,
Integer qrId2,String fileName);
}

@ -0,0 +1,94 @@
package com.hc.gpbusiness.service.impl;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.hc.gpbusiness.model.WebQrCode;
import com.hc.gpbusiness.mapper.WebQrCodeMapper;
import com.hc.gpbusiness.service.WebQrCodeService;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* (WebQrCode)
*
* @author makejava
* @since 2024-11-21 14:29:52
*/
@Service("webQrCodeService")
public class WebQrCodeServiceImpl implements WebQrCodeService {
private final WebQrCodeMapper webQrCodeMapper;
public WebQrCodeServiceImpl(WebQrCodeMapper webQrCodeMapper) {
this.webQrCodeMapper = webQrCodeMapper;
}
/**
* ID
*
* @param qrId
* @return
*/
@Override
public WebQrCode queryById(Integer qrId) {
return this.webQrCodeMapper.selectByPrimaryKey(qrId);
}
/**
*
*
* @param webQrCode
* @return
*/
@Override
public WebQrCode insert(WebQrCode webQrCode) {
this.webQrCodeMapper.insert(webQrCode);
return webQrCode;
}
/**
*
*
* @param webQrCode
* @return
*/
@Override
public WebQrCode update(WebQrCode webQrCode) {
this.webQrCodeMapper.updateByPrimaryKeySelective(webQrCode);
return this.queryById(webQrCode.getQrId());
}
/**
*
*
* @param qrId
* @return
*/
@Override
public boolean deleteById(Integer qrId) {
return this.webQrCodeMapper.deleteByPrimaryKey(qrId) > 0;
}
/**
*
*
* @param page
* @param size
* @return
*/
@Override
public PageInfo queryAllByLimit(int page, int size) {
return PageHelper.startPage(page, size).doSelectPageInfo(this.webQrCodeMapper::selectAll);
}
@Override
public PageInfo queryByAll(int page, int size,String qrName1,
String qrName2,
Integer qrType,
Integer qrId1,
Integer qrId2,String fileName) {
return PageHelper.startPage(page, size).doSelectPageInfo(() -> this.webQrCodeMapper.queryByAll(qrName1,qrName2,qrType,qrId1,qrId2,fileName));
}
}

@ -7,6 +7,7 @@
<result property="newsTitle" column="news_title" jdbcType="VARCHAR"/> <result property="newsTitle" column="news_title" jdbcType="VARCHAR"/>
<result property="newsLogo" column="news_logo" jdbcType="VARCHAR"/> <result property="newsLogo" column="news_logo" jdbcType="VARCHAR"/>
<result property="newsContent" column="news_content" jdbcType="VARCHAR"/> <result property="newsContent" column="news_content" jdbcType="VARCHAR"/>
<result property="newsUrl" column="news_url" jdbcType="VARCHAR"/>
<result property="moduleId" column="module_id" jdbcType="INTEGER"/> <result property="moduleId" column="module_id" jdbcType="INTEGER"/>
<result property="typeId" column="type_id" jdbcType="INTEGER"/> <result property="typeId" column="type_id" jdbcType="INTEGER"/>
<result property="flag" column="flag" jdbcType="INTEGER"/> <result property="flag" column="flag" jdbcType="INTEGER"/>
@ -32,6 +33,7 @@
news_title, news_title,
news_logo, news_logo,
news_content, news_content,
news_url,
module_id, module_id,
type_id, type_id,
flag, flag,

@ -0,0 +1,54 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.hc.gpbusiness.mapper.WebQrCodeMapper">
<resultMap type="com.hc.gpbusiness.model.WebQrCode" id="WebQrCodeMap">
<result property="qrId" column="qr_id" jdbcType="INTEGER"/>
<result property="qrName1" column="qr_name1" jdbcType="VARCHAR"/>
<result property="qrName2" column="qr_name2" jdbcType="VARCHAR"/>
<result property="qrType" column="qr_type" jdbcType="VARCHAR"/>
<result property="qrId1" column="qr_id1" jdbcType="INTEGER"/>
<result property="qrId2" column="qr_id2" jdbcType="INTEGER"/>
<result property="fileName" column="file_name" jdbcType="VARCHAR"/>
<result property="fileUrl" column="file_url" jdbcType="VARCHAR"/>
</resultMap>
<sql id="Base_Column_List">
qr_id,
qr_name1,
qr_name2,
qr_type,
qr_id1,
qr_id2,
file_name,
file_url
</sql>
<select id="queryByAll" resultType="com.hc.gpbusiness.model.WebQrCode">
SELECT
<include refid="Base_Column_List"/>
from web_qr_code
<where>
<if test="qrName1!=null and qrName1!=''">
AND qr_name1 LIKE "%"#{qrName1}"%"
</if>
<if test="qrName2!=null and qrName2!=''">
AND qr_name2 LIKE "%"#{qrName2}"%"
</if>
<if test="qrId1!=null">
AND qr_id1 = #{qrId1}
</if>
<if test="qrId2!=null">
AND qr_id2 = #{qrId2}
</if>
<if test="qrType!=null">
AND qr_type = #{qrType}
</if>
<if test="fileName!=null and fileName!=''">
AND file_name LIKE "%"#{fileName}"%"
</if>
</where>
ORDER BY qr_id asc
</select>
</mapper>

@ -0,0 +1,44 @@
package com.hc.gpweb.controller.front;
import com.hc.gpbusiness.service.WebQrCodeService;
import com.hc.gpcore.utils.result.Result;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.*;
/**
* (WebQrCode)
*
* @author makejava
* @since 2024-11-21 14:30:55
*/
@RestController
@RequestMapping("/api/front/QrCode")
public class FrontQrCodeController {
/**
*
*/
private final WebQrCodeService webQrCodeService;
public FrontQrCodeController(WebQrCodeService webQrCodeService) {
this.webQrCodeService = webQrCodeService;
}
@GetMapping("/list")
@ApiOperation(value = "获取QR列表(分页)", response = Result.class)
public Result listZccmQrAccessory(@RequestParam(defaultValue = "0") Integer page,
@RequestParam(defaultValue = "0") Integer size,
@ApiParam(value = "qrName1") @RequestParam(required = false) String qrName1,
@ApiParam(value = "qrName2") @RequestParam(required = false) String qrName2,
@ApiParam(value = "12表示文件 视频") @RequestParam(required = false) Integer qrType,
@ApiParam(value = "章节ID") @RequestParam(required = false) Integer qrId1,
@ApiParam(value = "章节ID") @RequestParam(required = false) Integer qrId2,
@ApiParam(value = "文件名") @RequestParam(required = false) String fileName) {
return Result.success(webQrCodeService.queryByAll(page, size,qrName1,qrName2,qrType,qrId1,qrId2,fileName));
}
}

@ -5,10 +5,10 @@ spring:
username: gp_union username: gp_union
password: gpUnion!123 password: gpUnion!123
redis: redis:
host: 223.108.133.166 host: 127.0.0.1
database: 3 database: 3
port: 6379 port: 6379
password: mypass password:
timeout: 5000ms timeout: 5000ms
lettuce: lettuce:
pool: pool:

Loading…
Cancel
Save