编号:ZSSAC-585 描述:H5模块包header新增appcode

This commit is contained in:
pengren 2024-04-25 14:53:29 +08:00
parent 6d661046d6
commit 65e268f38e
3 changed files with 14 additions and 14 deletions

View File

@ -46,7 +46,7 @@ public class DeploymentModuleListController extends BaseController
@GetMapping("/list") @GetMapping("/list")
public TableDataInfo list(DeploymentModuleList deploymentModuleList) public TableDataInfo list(DeploymentModuleList deploymentModuleList)
{ {
deploymentModuleList.setAppCore(RequestUtils.getHeader(RequestHeaderEnums.APP_CODE.getCode())); deploymentModuleList.setAppCode(RequestUtils.getHeader(RequestHeaderEnums.APP_CODE.getCode()));
startPage(); startPage();
List<DeploymentModuleList> list = deploymentModuleListService.selectDeploymentModuleListList(deploymentModuleList); List<DeploymentModuleList> list = deploymentModuleListService.selectDeploymentModuleListList(deploymentModuleList);
return getDataTable(list); return getDataTable(list);
@ -61,7 +61,7 @@ public class DeploymentModuleListController extends BaseController
throw new SecurityException("参数异常appCode为空"); throw new SecurityException("参数异常appCode为空");
} }
DeploymentModuleList deploymentModuleList = new DeploymentModuleList(); DeploymentModuleList deploymentModuleList = new DeploymentModuleList();
deploymentModuleList.setAppCore(request.getAppCore()); deploymentModuleList.setAppCode(RequestUtils.getHeader(RequestHeaderEnums.APP_CODE.getCode()));
deploymentModuleList.setSysType(request.getSysType()); deploymentModuleList.setSysType(request.getSysType());
List<DeploymentModuleList> list = deploymentModuleListService.selectDeploymentModuleListList(deploymentModuleList); List<DeploymentModuleList> list = deploymentModuleListService.selectDeploymentModuleListList(deploymentModuleList);
return success(list); return success(list);
@ -98,7 +98,7 @@ public class DeploymentModuleListController extends BaseController
@PostMapping @PostMapping
public AjaxResult add(@RequestBody DeploymentModuleList deploymentModuleList) public AjaxResult add(@RequestBody DeploymentModuleList deploymentModuleList)
{ {
deploymentModuleList.setAppCore(RequestUtils.getHeader(RequestHeaderEnums.APP_CODE.getCode())); deploymentModuleList.setAppCode(RequestUtils.getHeader(RequestHeaderEnums.APP_CODE.getCode()));
return toAjax(deploymentModuleListService.insertDeploymentModuleList(deploymentModuleList)); return toAjax(deploymentModuleListService.insertDeploymentModuleList(deploymentModuleList));
} }

View File

@ -22,7 +22,7 @@ public class DeploymentModuleList extends BaseEntity
private Long appId; private Long appId;
/** 应用core */ /** 应用core */
private String appCore; private String appCode;
/** 上传类型 */ /** 上传类型 */
private String uploadingType; private String uploadingType;
@ -88,14 +88,14 @@ public class DeploymentModuleList extends BaseEntity
{ {
return appId; return appId;
} }
public void setAppCore(String appCore) public void setAppCode(String appCode)
{ {
this.appCore = appCore; this.appCode = appCode;
} }
public String getAppCore() public String getAppCode()
{ {
return appCore; return appCode;
} }
public void setUploadingType(String uploadingType) public void setUploadingType(String uploadingType)
{ {
@ -220,7 +220,7 @@ public class DeploymentModuleList extends BaseEntity
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId()) .append("id", getId())
.append("appId", getAppId()) .append("appId", getAppId())
.append("appCore", getAppCore()) .append("appCore", getAppCode())
.append("uploadingType", getUploadingType()) .append("uploadingType", getUploadingType())
.append("moduleName", getModuleName()) .append("moduleName", getModuleName())
.append("version", getVersion()) .append("version", getVersion())

View File

@ -7,7 +7,7 @@
<resultMap type="DeploymentModuleList" id="DeploymentModuleListResult"> <resultMap type="DeploymentModuleList" id="DeploymentModuleListResult">
<result property="id" column="id"/> <result property="id" column="id"/>
<result property="appId" column="app_id"/> <result property="appId" column="app_id"/>
<result property="appCore" column="app_core"/> <result property="appCode" column="app_code"/>
<result property="uploadingType" column="uploading_type"/> <result property="uploadingType" column="uploading_type"/>
<result property="moduleName" column="module_name"/> <result property="moduleName" column="module_name"/>
<result property="version" column="version"/> <result property="version" column="version"/>
@ -33,7 +33,7 @@
resultMap="DeploymentModuleListResult"> resultMap="DeploymentModuleListResult">
<include refid="selectDeploymentModuleListVo"/> <include refid="selectDeploymentModuleListVo"/>
<where> <where>
<if test="appCore != null and appCore != ''">and app_core = #{appCore}</if> <if test="appCode != null and appCode != ''">and app_code = #{appCode}</if>
<if test="sysType != null and sysType != ''">and sys_type= #{sysType}</if> <if test="sysType != null and sysType != ''">and sys_type= #{sysType}</if>
<if test="moduleName != null and moduleName != ''">and module_name like concat('%', #{moduleName}, '%')</if> <if test="moduleName != null and moduleName != ''">and module_name like concat('%', #{moduleName}, '%')</if>
<if test="version != null and version != ''">and version = #{version}</if> <if test="version != null and version != ''">and version = #{version}</if>
@ -52,7 +52,7 @@
insert into DEPLOYMENT_MODULE_LIST insert into DEPLOYMENT_MODULE_LIST
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="appId != null">app_id,</if> <if test="appId != null">app_id,</if>
<if test="appCore != null">app_core,</if> <if test="appCode != null">app_code,</if>
<if test="uploadingType != null">uploading_type,</if> <if test="uploadingType != null">uploading_type,</if>
<if test="moduleName != null and moduleName != ''">module_name,</if> <if test="moduleName != null and moduleName != ''">module_name,</if>
<if test="version != null and version != ''">version,</if> <if test="version != null and version != ''">version,</if>
@ -71,7 +71,7 @@
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="appId != null">#{appId},</if> <if test="appId != null">#{appId},</if>
<if test="appCore != null">#{appCore},</if> <if test="appCode != null">#{appCode},</if>
<if test="uploadingType != null">#{uploadingType},</if> <if test="uploadingType != null">#{uploadingType},</if>
<if test="moduleName != null and moduleName != ''">#{moduleName},</if> <if test="moduleName != null and moduleName != ''">#{moduleName},</if>
<if test="version != null and version != ''">#{version},</if> <if test="version != null and version != ''">#{version},</if>
@ -94,7 +94,7 @@
update DEPLOYMENT_MODULE_LIST update DEPLOYMENT_MODULE_LIST
<trim prefix="SET" suffixOverrides=","> <trim prefix="SET" suffixOverrides=",">
<if test="appId != null">app_id = #{appId},</if> <if test="appId != null">app_id = #{appId},</if>
<if test="appCore != null">app_core = #{appCore},</if> <if test="appCode != null">app_core = #{appCode},</if>
<if test="uploadingType != null">uploading_type = #{uploadingType},</if> <if test="uploadingType != null">uploading_type = #{uploadingType},</if>
<if test="moduleName != null and moduleName != ''">module_name = #{moduleName},</if> <if test="moduleName != null and moduleName != ''">module_name = #{moduleName},</if>
<if test="version != null and version != ''">version = #{version},</if> <if test="version != null and version != ''">version = #{version},</if>