打印功能代码提交

master
郑明梁 2 years ago
parent da9c9ee118
commit 07e40596d3

@ -0,0 +1,69 @@
package com.glxp.api.controller.system;
import com.github.pagehelper.PageInfo;
import com.glxp.api.annotation.AuthRuleAnnotation;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.basic.BasicBussinessTypeEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity;
import com.glxp.api.entity.thrsys.ThrDeptEntity;
import com.glxp.api.req.basic.FilterBussinessTypeRequest;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.basic.IBasicBussinessTypeService;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceBizService;
import com.glxp.api.service.system.impl.SystemPDFTemplateRelevanceBizServiceImpl;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
public class SystemPDFTemplateRelevanceBizController {
@Resource
SystemPDFTemplateRelevanceBizService systemPDFTemplateRelevanceBizService;
@Resource
IBasicBussinessTypeService basicBussinessTypeService;
@PostMapping("/system/pdf/templateRelevanceBiz/getListByModelId")
public BaseResponse getListByModelId(@RequestBody FilterPdfTemplateRelevanceRequest filterPdfTemplateRelevanceRequest) {
FilterBussinessTypeRequest filterBussinessTypeRequest = new FilterBussinessTypeRequest();
filterBussinessTypeRequest.setEnable(true);
List<BasicBussinessTypeEntity> bussinessLocalTypeEntities = basicBussinessTypeService.findList(filterBussinessTypeRequest);
for (BasicBussinessTypeEntity basicBussinessTypeEntity : bussinessLocalTypeEntities) {
SysPdfTemplateRelevanceBizEntity systemPDFTemplateRelevanceEntity = new SysPdfTemplateRelevanceBizEntity();
systemPDFTemplateRelevanceEntity.setLocalAction(basicBussinessTypeEntity.getAction());
systemPDFTemplateRelevanceEntity.setModuleId(filterPdfTemplateRelevanceRequest.getModuleId());
systemPDFTemplateRelevanceEntity.setModelKey(filterPdfTemplateRelevanceRequest.getModelKey());
systemPDFTemplateRelevanceBizService.insert(systemPDFTemplateRelevanceEntity);
}
List<SystemPDFTemplateRelevanceResponse> sysPdfTemplateRelevanceBizEntityList= systemPDFTemplateRelevanceBizService.filterList(filterPdfTemplateRelevanceRequest);
PageInfo<SystemPDFTemplateRelevanceResponse> pageInfo;
pageInfo = new PageInfo<>(sysPdfTemplateRelevanceBizEntityList);
PageSimpleResponse<SystemPDFTemplateRelevanceResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(sysPdfTemplateRelevanceBizEntityList);
return ResultVOUtils.success(pageSimpleResponse);
}
@PostMapping("/system/pdf/templateRelevanceBiz/updateRl")
public BaseResponse updateRl(@RequestBody SysPdfTemplateRelevanceBizEntity sysPdfTemplateRelevanceBizEntity) {
systemPDFTemplateRelevanceBizService.udpateRl(sysPdfTemplateRelevanceBizEntity);
return ResultVOUtils.success("修改成功");
}
}

@ -0,0 +1,67 @@
package com.glxp.api.controller.system;
import com.github.pagehelper.PageInfo;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.basic.BasicBussinessTypeEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity;
import com.glxp.api.req.basic.FilterBussinessTypeRequest;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.basic.IBasicBussinessTypeService;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceCodeService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
public class SystemPDFTemplateRelevanceCodeController {
@Resource
SystemPDFTemplateRelevanceCodeService systemPDFTemplateRelevanceCodeService;
@Resource
IBasicBussinessTypeService basicBussinessTypeService;
@PostMapping("/system/pdf/templateRelevanceCode/getListByModelId")
public BaseResponse getListByModelId(@RequestBody FilterPdfTemplateRelevanceRequest filterPdfTemplateRelevanceRequest) {
FilterBussinessTypeRequest filterBussinessTypeRequest = new FilterBussinessTypeRequest();
filterBussinessTypeRequest.setEnable(true);
List<BasicBussinessTypeEntity> bussinessLocalTypeEntities = basicBussinessTypeService.findList(filterBussinessTypeRequest);
for (BasicBussinessTypeEntity basicBussinessTypeEntity : bussinessLocalTypeEntities) {
SysPdfTemplateRelevanceCodeEntity systemPDFTemplateRelevanceEntity = new SysPdfTemplateRelevanceCodeEntity();
systemPDFTemplateRelevanceEntity.setLocalAction(basicBussinessTypeEntity.getAction());
systemPDFTemplateRelevanceEntity.setModuleId(filterPdfTemplateRelevanceRequest.getModuleId());
systemPDFTemplateRelevanceEntity.setModelKey(filterPdfTemplateRelevanceRequest.getModelKey());
systemPDFTemplateRelevanceCodeService.insert(systemPDFTemplateRelevanceEntity);
}
List<SystemPDFTemplateRelevanceResponse> sysPdfTemplateRelevanceCodeEntityList= systemPDFTemplateRelevanceCodeService.filterList(filterPdfTemplateRelevanceRequest);
PageInfo<SystemPDFTemplateRelevanceResponse> pageInfo;
pageInfo = new PageInfo<>(sysPdfTemplateRelevanceCodeEntityList);
PageSimpleResponse<SystemPDFTemplateRelevanceResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(sysPdfTemplateRelevanceCodeEntityList);
return ResultVOUtils.success(pageSimpleResponse);
}
@PostMapping("/system/pdf/templateRelevanceCode/updateRl")
public BaseResponse updateRl(@RequestBody SysPdfTemplateRelevanceCodeEntity sysPdfTemplateRelevanceCodeEntity) {
systemPDFTemplateRelevanceCodeService.udpateRl(sysPdfTemplateRelevanceCodeEntity);
return ResultVOUtils.success("修改成功");
}
}

@ -0,0 +1,48 @@
package com.glxp.api.controller.system;
import com.github.pagehelper.PageInfo;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceLabelService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
public class SystemPDFTemplateRelevanceLabelController {
@Resource
SystemPDFTemplateRelevanceLabelService systemPDFTemplateRelevanceLabelService;
@PostMapping("/system/pdf/templateRelevanceLabel/getListByModelId")
public BaseResponse getListByModelId(@RequestBody FilterPdfTemplateRelevanceRequest filterPdfTemplateRelevanceRequest) {
List<SystemPDFTemplateRelevanceResponse> sysPdfTemplateRelevanceLabelEntityList= systemPDFTemplateRelevanceLabelService.filterList(filterPdfTemplateRelevanceRequest);
PageInfo<SystemPDFTemplateRelevanceResponse> pageInfo;
pageInfo = new PageInfo<>(sysPdfTemplateRelevanceLabelEntityList);
PageSimpleResponse<SystemPDFTemplateRelevanceResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(sysPdfTemplateRelevanceLabelEntityList);
return ResultVOUtils.success(pageSimpleResponse);
}
@PostMapping("/system/pdf/templateRelevanceLabel/updateRl")
public BaseResponse updateRl(@RequestBody SysPdfTemplateRelevanceLabelEntity sysPdfTemplateRelevanceLabelEntity) {
systemPDFTemplateRelevanceLabelService.udpateRl(sysPdfTemplateRelevanceLabelEntity);
return ResultVOUtils.success("修改成功");
}
}

@ -0,0 +1,48 @@
package com.glxp.api.controller.system;
import com.github.pagehelper.PageInfo;
import com.glxp.api.common.res.BaseResponse;
import com.glxp.api.common.util.ResultVOUtils;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.PageSimpleResponse;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceStatemenService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
public class SystemPDFTemplateRelevanceStatemenController {
@Resource
SystemPDFTemplateRelevanceStatemenService systemPDFTemplateRelevanceStatemenService;
@PostMapping("/system/pdf/templateRelevanceStatement/getListByModelId")
public BaseResponse getListByModelId(@RequestBody FilterPdfTemplateRelevanceRequest filterPdfTemplateRelevanceRequest) {
List<SystemPDFTemplateRelevanceResponse> sysPdfTemplateRelevanceStatemenEntityList= systemPDFTemplateRelevanceStatemenService.filterList(filterPdfTemplateRelevanceRequest);
PageInfo<SystemPDFTemplateRelevanceResponse> pageInfo;
pageInfo = new PageInfo<>(sysPdfTemplateRelevanceStatemenEntityList);
PageSimpleResponse<SystemPDFTemplateRelevanceResponse> pageSimpleResponse = new PageSimpleResponse<>();
pageSimpleResponse.setTotal(pageInfo.getTotal());
pageSimpleResponse.setList(sysPdfTemplateRelevanceStatemenEntityList);
return ResultVOUtils.success(pageSimpleResponse);
}
@PostMapping("/system/pdf/templateRelevanceStatement/updateRl")
public BaseResponse updateRl(@RequestBody SysPdfTemplateRelevanceStatemenEntity sysPdfTemplateRelevanceStatemenEntity) {
systemPDFTemplateRelevanceStatemenService.udpateRl(sysPdfTemplateRelevanceStatemenEntity);
return ResultVOUtils.success("修改成功");
}
}

@ -1,31 +1,19 @@
package com.glxp.api.dao.system;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.system.SysMenuHelpEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import java.util.List;
import com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import org.apache.ibatis.annotations.Param;
public interface SysPdfTemplateRelevanceBizDao {
int deleteByPrimaryKey(Integer id);
public interface SysPdfTemplateRelevanceBizDao extends BaseMapper<SysPdfTemplateRelevanceBizEntity> {
int insert(SysPdfTemplateRelevanceBizEntity record);
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
int insertOrUpdate(SysPdfTemplateRelevanceBizEntity record);
int insertOrUpdateSelective(SysPdfTemplateRelevanceBizEntity record);
int insertSelective(SysPdfTemplateRelevanceBizEntity record);
SysPdfTemplateRelevanceBizEntity selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(SysPdfTemplateRelevanceBizEntity record);
int updateByPrimaryKey(SysPdfTemplateRelevanceBizEntity record);
int updateBatch(List<SysPdfTemplateRelevanceBizEntity> list);
int updateBatchSelective(List<SysPdfTemplateRelevanceBizEntity> list);
int batchInsert(@Param("list") List<SysPdfTemplateRelevanceBizEntity> list);
boolean upInsert(SysPdfTemplateRelevanceBizEntity sysPdfTemplateRelevanceBizEntity);
}

@ -1,31 +1,22 @@
package com.glxp.api.dao.system;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity;
import java.util.List;
import com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import org.apache.ibatis.annotations.Param;
public interface SysPdfTemplateRelevanceCodeDao {
int deleteByPrimaryKey(Integer id);
public interface SysPdfTemplateRelevanceCodeDao extends BaseMapper<SysPdfTemplateRelevanceCodeEntity> {
int insert(SysPdfTemplateRelevanceCodeEntity record);
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
int insertOrUpdate(SysPdfTemplateRelevanceCodeEntity record);
boolean upInsert(SysPdfTemplateRelevanceCodeEntity sysPdfTemplateRelevanceCodeEntity);
int insertOrUpdateSelective(SysPdfTemplateRelevanceCodeEntity record);
int insertSelective(SysPdfTemplateRelevanceCodeEntity record);
SysPdfTemplateRelevanceCodeEntity selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(SysPdfTemplateRelevanceCodeEntity record);
int updateByPrimaryKey(SysPdfTemplateRelevanceCodeEntity record);
int updateBatch(List<SysPdfTemplateRelevanceCodeEntity> list);
int updateBatchSelective(List<SysPdfTemplateRelevanceCodeEntity> list);
int batchInsert(@Param("list") List<SysPdfTemplateRelevanceCodeEntity> list);
}

@ -1,31 +1,16 @@
package com.glxp.api.dao.system;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity;
import java.util.List;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import org.apache.ibatis.annotations.Param;
public interface SysPdfTemplateRelevanceLabelDao {
int deleteByPrimaryKey(Integer id);
public interface SysPdfTemplateRelevanceLabelDao extends BaseMapper<SysPdfTemplateRelevanceLabelEntity> {
int insert(SysPdfTemplateRelevanceLabelEntity record);
int insertOrUpdate(SysPdfTemplateRelevanceLabelEntity record);
int insertOrUpdateSelective(SysPdfTemplateRelevanceLabelEntity record);
int insertSelective(SysPdfTemplateRelevanceLabelEntity record);
SysPdfTemplateRelevanceLabelEntity selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(SysPdfTemplateRelevanceLabelEntity record);
int updateByPrimaryKey(SysPdfTemplateRelevanceLabelEntity record);
int updateBatch(List<SysPdfTemplateRelevanceLabelEntity> list);
int updateBatchSelective(List<SysPdfTemplateRelevanceLabelEntity> list);
int batchInsert(@Param("list") List<SysPdfTemplateRelevanceLabelEntity> list);
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
}

@ -1,31 +1,17 @@
package com.glxp.api.dao.system;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity;
import java.util.List;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import org.apache.ibatis.annotations.Param;
public interface SysPdfTemplateRelevanceStatemenDao {
int deleteByPrimaryKey(Integer id);
public interface SysPdfTemplateRelevanceStatemenDao extends BaseMapper<SysPdfTemplateRelevanceStatemenEntity> {
int insert(SysPdfTemplateRelevanceStatemenEntity record);
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
int insertOrUpdate(SysPdfTemplateRelevanceStatemenEntity record);
int insertOrUpdateSelective(SysPdfTemplateRelevanceStatemenEntity record);
int insertSelective(SysPdfTemplateRelevanceStatemenEntity record);
SysPdfTemplateRelevanceStatemenEntity selectByPrimaryKey(Integer id);
int updateByPrimaryKeySelective(SysPdfTemplateRelevanceStatemenEntity record);
int updateByPrimaryKey(SysPdfTemplateRelevanceStatemenEntity record);
int updateBatch(List<SysPdfTemplateRelevanceStatemenEntity> list);
int updateBatchSelective(List<SysPdfTemplateRelevanceStatemenEntity> list);
int batchInsert(@Param("list") List<SysPdfTemplateRelevanceStatemenEntity> list);
}

@ -1,49 +1,62 @@
package com.glxp.api.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* PDF
*/
@Data
@TableName(value = "sys_pdf_template_relevance_biz")
public class SysPdfTemplateRelevanceBizEntity {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
* id
*/
* id
*/
@TableField(value = "`templateId`")
private Integer templateId;
/**
* ID
*/
* ID
*/
@TableField(value = "`customerId`")
private Long customerId;
/**
* id
*/
* id
*/
@TableField(value = "`adminId`")
private Integer adminId;
/**
* ID
*/
* ID
*/
@TableField(value = "`moduleId`")
private Integer moduleId;
/**
* ID
*/
* ID
*/
@TableField(value = "`localAction`")
private String localAction;
@TableField(value = "`remark1`")
private String remark1;
@TableField(value = "`remark2`")
private String remark2;
@TableField(value = "`remark3`")
private String remark3;
/**
* 01
*/
@TableField(value = "`printType`")
private Byte printType;
@TableField(value = "`modelKey`")
private String modelKey;
}

@ -1,49 +1,63 @@
package com.glxp.api.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* PDF
*/
@Data
@TableName(value = "sys_pdf_template_relevance_code")
public class SysPdfTemplateRelevanceCodeEntity {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
* id
*/
@TableField(value = "`templateId`")
private Integer templateId;
/**
* ID
*/
@TableField(value = "`customerId`")
private Long customerId;
/**
* id
*/
@TableField(value = "`adminId`")
private Integer adminId;
/**
* ID
*/
@TableField(value = "`moduleId`")
private Integer moduleId;
/**
* ID
*/
@TableField(value = "`localAction`")
private String localAction;
@TableField(value = "`remark1`")
private String remark1;
@TableField(value = "`remark2`")
private String remark2;
@TableField(value = "`remark3`")
private String remark3;
/**
* 01
*/
@TableField(value = "`printType`")
private Byte printType;
@TableField(value = "`modelKey`")
private String modelKey;
}

@ -1,49 +1,62 @@
package com.glxp.api.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* PDF
*/
@Data
@TableName(value = "sys_pdf_template_relevance_label")
public class SysPdfTemplateRelevanceLabelEntity {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
* id
*/
* id
*/
@TableField(value = "`templateId`")
private Integer templateId;
/**
* ID
*/
* ID
*/
@TableField(value = "`customerId`")
private Long customerId;
/**
* id
*/
* id
*/
@TableField(value = "`adminId`")
private Integer adminId;
/**
* ID
*/
* ID
*/
@TableField(value = "`moduleId`")
private Integer moduleId;
/**
* ID
*/
* ID
*/
@TableField(value = "`localAction`")
private String localAction;
@TableField(value = "`remark1`")
private String remark1;
@TableField(value = "`remark2`")
private String remark2;
@TableField(value = "`remark3`")
private String remark3;
/**
* 01
*/
@TableField(value = "`printType`")
private Byte printType;
@TableField(value = "`modelKey`")
private String modelKey;
}

@ -1,49 +1,65 @@
package com.glxp.api.entity.system;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* PDF
*/
@Data
@TableName(value = "sys_pdf_template_relevance_statemen")
public class SysPdfTemplateRelevanceStatemenEntity {
@TableId(value = "id", type = IdType.INPUT)
private Integer id;
/**
* id
*/
* id
*/
@TableField(value = "`templateId`")
private Integer templateId;
/**
* ID
*/
* ID
*/
@TableField(value = "`customerId`")
private Long customerId;
/**
* id
*/
* id
*/
@TableField(value = "`adminId`")
private Integer adminId;
/**
* ID
*/
* ID
*/
@TableField(value = "`moduleId`")
private Integer moduleId;
/**
* ID
*/
* ID
*/
@TableField(value = "`localAction`")
private String localAction;
@TableField(value = "`remark1`")
private String remark1;
@TableField(value = "`remark2`")
private String remark2;
@TableField(value = "`remark3`")
private String remark3;
/**
* 01
*/
* 01
*/
@TableField(value = "`printType`")
private Byte printType;
@TableField(value = "`modelKey`")
private String modelKey;
}

@ -20,4 +20,5 @@ public class SystemPDFModuleEntity {
private String remark1;
private String remark2;
private String remark3;
private String modelKey;
}

@ -19,4 +19,5 @@ public class FilterPdfModuleRequest extends ListPageRequest {
private Date create_time;
private Integer templateType;
private Date update_time;
private String modelKey;
}

@ -8,4 +8,5 @@ public class FilterPdfTemplateRelevanceRequest extends ListPageRequest {
private Integer moduleId;
private Integer templateType;
private String localAction;
private String modelKey;
}

@ -18,4 +18,5 @@ public class SystemPDFModuleResponse {
private String templateDlUrl;
private String templateName;
private Integer templateType;
private String modelKey;
}

@ -0,0 +1,24 @@
package com.glxp.api.service.system;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import java.util.List;
public interface SystemPDFTemplateRelevanceBizService {
List<SysPdfTemplateRelevanceBizEntity> getListByModelId(Integer modelId);
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
boolean udpateRl(SysPdfTemplateRelevanceBizEntity sysPdfTemplateRelevanceBizEntity);
boolean insert(SysPdfTemplateRelevanceBizEntity sysPdfTemplateRelevanceBizEntity);
}

@ -0,0 +1,25 @@
package com.glxp.api.service.system;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import java.util.List;
public interface SystemPDFTemplateRelevanceCodeService {
List<SysPdfTemplateRelevanceCodeEntity> getListByModelId(Integer modelId);
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
boolean udpateRl(SysPdfTemplateRelevanceCodeEntity sysPdfTemplateRelevanceCodeEntity);
boolean insert(SysPdfTemplateRelevanceCodeEntity sysPdfTemplateRelevanceCodeEntity);
}

@ -0,0 +1,21 @@
package com.glxp.api.service.system;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import java.util.List;
public interface SystemPDFTemplateRelevanceLabelService {
List<SysPdfTemplateRelevanceLabelEntity> getListByModelId(Integer modelId);
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
boolean udpateRl(SysPdfTemplateRelevanceLabelEntity sysPdfTemplateRelevanceLabelEntity);
}

@ -0,0 +1,21 @@
package com.glxp.api.service.system;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import java.util.List;
public interface SystemPDFTemplateRelevanceStatemenService {
List<SysPdfTemplateRelevanceStatemenEntity> getListByModelId(Integer modelId);
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
boolean udpateRl(SysPdfTemplateRelevanceStatemenEntity sysPdfTemplateRelevanceStatemenEntity);
}

@ -0,0 +1,59 @@
package com.glxp.api.service.system.impl;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.api.dao.system.SysPdfTemplateRelevanceBizDao;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceBizService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class SystemPDFTemplateRelevanceBizServiceImpl implements SystemPDFTemplateRelevanceBizService {
@Resource
SysPdfTemplateRelevanceBizDao sysPdfTemplateRelevanceBizDao;
@Override
public List<SysPdfTemplateRelevanceBizEntity> getListByModelId(Integer modelId) {
QueryWrapper<SysPdfTemplateRelevanceBizEntity> ew=new QueryWrapper();
if(modelId!=null){
ew.eq("moduleId",modelId);
}
List<SysPdfTemplateRelevanceBizEntity> sysPdfTemplateRelevanceBizEntityList=sysPdfTemplateRelevanceBizDao.selectList(ew);
return sysPdfTemplateRelevanceBizEntityList;
}
@Override
public List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest) {
return sysPdfTemplateRelevanceBizDao.filterList(systemPDFModuleRequest);
}
@Override
public boolean udpateRl(SysPdfTemplateRelevanceBizEntity systemPDFTemplateRelevanceEntity) {
int count= sysPdfTemplateRelevanceBizDao.updateById(systemPDFTemplateRelevanceEntity);
if(count>0){
return true;
}else{
return false;
}
}
@Override
public boolean insert(SysPdfTemplateRelevanceBizEntity sysPdfTemplateRelevanceBizEntity) {
sysPdfTemplateRelevanceBizDao.upInsert(sysPdfTemplateRelevanceBizEntity);
return true;
}
}

@ -0,0 +1,60 @@
package com.glxp.api.service.system.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.api.dao.system.SysPdfTemplateRelevanceBizDao;
import com.glxp.api.dao.system.SysPdfTemplateRelevanceCodeDao;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceBizService;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceCodeService;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class SystemPDFTemplateRelevanceCodeServiceImpl implements SystemPDFTemplateRelevanceCodeService {
@Resource
SysPdfTemplateRelevanceCodeDao sysPdfTemplateRelevanceCodeDao;
@Override
public List<SysPdfTemplateRelevanceCodeEntity> getListByModelId(Integer modelId) {
QueryWrapper<SysPdfTemplateRelevanceCodeEntity> ew=new QueryWrapper();
if(modelId!=null){
ew.eq("moduleId",modelId);
}
List<SysPdfTemplateRelevanceCodeEntity> sysPdfTemplateRelevanceCodeEntityList=sysPdfTemplateRelevanceCodeDao.selectList(ew);
return sysPdfTemplateRelevanceCodeEntityList;
}
@Override
public List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest) {
return sysPdfTemplateRelevanceCodeDao.filterList(systemPDFModuleRequest);
}
@Override
public boolean udpateRl(SysPdfTemplateRelevanceCodeEntity systemPDFTemplateRelevanceEntity) {
int count= sysPdfTemplateRelevanceCodeDao.updateById(systemPDFTemplateRelevanceEntity);
if(count>0){
return true;
}else{
return false;
}
}
@Override
public boolean insert(SysPdfTemplateRelevanceCodeEntity sysPdfTemplateRelevanceCodeEntity) {
sysPdfTemplateRelevanceCodeDao.upInsert(sysPdfTemplateRelevanceCodeEntity);
return false;
}
}

@ -0,0 +1,50 @@
package com.glxp.api.service.system.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.api.dao.system.SysPdfTemplateRelevanceLabelDao;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceLabelService;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceLabelService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class SystemPDFTemplateRelevanceLabelServiceImpl implements SystemPDFTemplateRelevanceLabelService {
@Resource
SysPdfTemplateRelevanceLabelDao sysPdfTemplateRelevanceLabelDao;
@Override
public List<SysPdfTemplateRelevanceLabelEntity> getListByModelId(Integer modelId) {
QueryWrapper<SysPdfTemplateRelevanceLabelEntity> ew=new QueryWrapper();
if(modelId!=null){
ew.eq("moduleId",modelId);
}
List<SysPdfTemplateRelevanceLabelEntity> sysPdfTemplateRelevanceLabelEntityList=sysPdfTemplateRelevanceLabelDao.selectList(ew);
return sysPdfTemplateRelevanceLabelEntityList;
}
@Override
public List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest) {
return sysPdfTemplateRelevanceLabelDao.filterList(systemPDFModuleRequest);
}
@Override
public boolean udpateRl(SysPdfTemplateRelevanceLabelEntity systemPDFTemplateRelevanceEntity) {
int count= sysPdfTemplateRelevanceLabelDao.updateById(systemPDFTemplateRelevanceEntity);
if(count>0){
return true;
}else{
return false;
}
}
}

@ -0,0 +1,50 @@
package com.glxp.api.service.system.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.glxp.api.dao.system.SysPdfTemplateRelevanceStatemenDao;
import com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity;
import com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest;
import com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceStatemenService;
import com.glxp.api.service.system.SystemPDFTemplateRelevanceStatemenService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class SystemPDFTemplateRelevanceStatemenServiceImpl implements SystemPDFTemplateRelevanceStatemenService {
@Resource
SysPdfTemplateRelevanceStatemenDao sysPdfTemplateRelevanceStatemenDao;
@Override
public List<SysPdfTemplateRelevanceStatemenEntity> getListByModelId(Integer modelId) {
QueryWrapper<SysPdfTemplateRelevanceStatemenEntity> ew=new QueryWrapper();
if(modelId!=null){
ew.eq("moduleId",modelId);
}
List<SysPdfTemplateRelevanceStatemenEntity> sysPdfTemplateRelevanceStatemenEntityList=sysPdfTemplateRelevanceStatemenDao.selectList(ew);
return sysPdfTemplateRelevanceStatemenEntityList;
}
@Override
public List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest) {
return sysPdfTemplateRelevanceStatemenDao.filterList(systemPDFModuleRequest);
}
@Override
public boolean udpateRl(SysPdfTemplateRelevanceStatemenEntity systemPDFTemplateRelevanceEntity) {
int count= sysPdfTemplateRelevanceStatemenDao.updateById(systemPDFTemplateRelevanceEntity);
if(count>0){
return true;
}else{
return false;
}
}
}

@ -21,462 +21,56 @@
id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from sys_pdf_template_relevance_biz
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from sys_pdf_template_relevance_biz
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_biz (templateId, customerId, adminId,
moduleId, localAction, remark1,
remark2, remark3, printType,
modelKey)
values (#{templateId,jdbcType=INTEGER}, #{customerId,jdbcType=BIGINT}, #{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER}, #{localAction,jdbcType=VARCHAR}, #{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR}, #{remark3,jdbcType=VARCHAR}, #{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_biz
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="templateId != null">
templateId,
</if>
<if test="customerId != null">
customerId,
</if>
<if test="adminId != null">
adminId,
</if>
<if test="moduleId != null">
moduleId,
</if>
<if test="localAction != null">
localAction,
</if>
<if test="remark1 != null">
remark1,
</if>
<if test="remark2 != null">
remark2,
</if>
<if test="remark3 != null">
remark3,
</if>
<if test="printType != null">
printType,
</if>
<if test="modelKey != null">
modelKey,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="templateId != null">
#{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
#{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
#{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
#{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
#{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
#{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
#{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
#{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
#{modelKey,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity">
<!--@mbg.generated-->
update sys_pdf_template_relevance_biz
<set>
<if test="templateId != null">
templateId = #{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customerId = #{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
adminId = #{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
moduleId = #{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
localAction = #{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
remark1 = #{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
remark2 = #{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
remark3 = #{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
printType = #{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
modelKey = #{modelKey,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity">
<!--@mbg.generated-->
update sys_pdf_template_relevance_biz
set templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update sys_pdf_template_relevance_biz
<trim prefix="set" suffixOverrides=",">
<trim prefix="templateId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="customerId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="adminId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="moduleId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="localAction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark3 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="printType = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="modelKey = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update sys_pdf_template_relevance_biz
<trim prefix="set" suffixOverrides=",">
<trim prefix="templateId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.templateId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="customerId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="adminId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.adminId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="moduleId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.moduleId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="localAction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.localAction != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark1 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark2 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark3 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark3 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="printType = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.printType != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="modelKey = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.modelKey != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_biz
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey)
values
<foreach collection="list" item="item" separator=",">
(#{item.templateId,jdbcType=INTEGER}, #{item.customerId,jdbcType=BIGINT}, #{item.adminId,jdbcType=INTEGER},
#{item.moduleId,jdbcType=INTEGER}, #{item.localAction,jdbcType=VARCHAR}, #{item.remark1,jdbcType=VARCHAR},
#{item.remark2,jdbcType=VARCHAR}, #{item.remark3,jdbcType=VARCHAR}, #{item.printType,jdbcType=TINYINT},
#{item.modelKey,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_biz
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
templateId,
customerId,
adminId,
moduleId,
localAction,
remark1,
remark2,
remark3,
printType,
modelKey,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{templateId,jdbcType=INTEGER},
#{customerId,jdbcType=BIGINT},
#{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER},
#{localAction,jdbcType=VARCHAR},
#{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR},
#{remark3,jdbcType=VARCHAR},
#{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_biz
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="templateId != null">
templateId,
</if>
<if test="customerId != null">
customerId,
</if>
<if test="adminId != null">
adminId,
</if>
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
select basic_bussiness_type.`name` localActionName,
sys_pdf_template_relevance_biz.id,
basic_bussiness_type.action localAction,
templateId,
moduleId,
sys_pdf_template.name templateName,
sys_pdf_template_relevance_biz.remark1,
sys_pdf_template_relevance_biz.remark2,
sys_pdf_template_relevance_biz.remark3,
printType
from basic_bussiness_type
LEFT JOIN sys_pdf_template_relevance_biz on basic_bussiness_type.action = sys_pdf_template_relevance_biz.localAction
LEFT JOIN sys_pdf_template on sys_pdf_template_relevance_biz.templateId = sys_pdf_template.id
<where>
<if test="moduleId != null">
moduleId,
AND `moduleId` = #{moduleId}
</if>
<if test="localAction != null">
localAction,
</if>
<if test="remark1 != null">
remark1,
</if>
<if test="remark2 != null">
remark2,
</if>
<if test="remark3 != null">
remark3,
AND sys_pdf_template_relevance_biz.`localAction` = #{localAction}
</if>
<if test="printType != null">
printType,
<if test="templateType != null">
AND sys_pdf_template_relevance_biz.`templateType` = #{templateType}
</if>
<if test="modelKey != null">
modelKey,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="templateId != null">
#{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
#{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
#{moduleId,jdbcType=INTEGER},
AND sys_pdf_template_relevance_biz.`modelKey` = #{modelKey}
</if>
<if test="localAction != null">
#{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
#{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
#{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
#{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
#{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
#{modelKey,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="templateId != null">
templateId = #{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customerId = #{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
adminId = #{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
moduleId = #{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
localAction = #{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
remark1 = #{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
remark2 = #{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
remark3 = #{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
printType = #{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
modelKey = #{modelKey,jdbcType=VARCHAR},
</if>
</trim>
</where>
</select>
<insert id="upInsert" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceBizEntity">
insert
ignore
INTO sys_pdf_template_relevance_biz
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3, printType,modelKey)
values (#{templateId},
#{customerId},
#{adminId},
#{moduleId},
#{localAction},
#{remark1},
#{remark2},
#{remark3},
#{printType},
#{modelKey}
)
</insert>
</mapper>

@ -21,462 +21,56 @@
id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from sys_pdf_template_relevance_code
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from sys_pdf_template_relevance_code
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_code (templateId, customerId, adminId,
moduleId, localAction, remark1,
remark2, remark3, printType,
modelKey)
values (#{templateId,jdbcType=INTEGER}, #{customerId,jdbcType=BIGINT}, #{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER}, #{localAction,jdbcType=VARCHAR}, #{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR}, #{remark3,jdbcType=VARCHAR}, #{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="templateId != null">
templateId,
</if>
<if test="customerId != null">
customerId,
</if>
<if test="adminId != null">
adminId,
</if>
<if test="moduleId != null">
moduleId,
</if>
<if test="localAction != null">
localAction,
</if>
<if test="remark1 != null">
remark1,
</if>
<if test="remark2 != null">
remark2,
</if>
<if test="remark3 != null">
remark3,
</if>
<if test="printType != null">
printType,
</if>
<if test="modelKey != null">
modelKey,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="templateId != null">
#{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
#{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
#{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
#{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
#{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
#{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
#{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
#{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
#{modelKey,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
<!--@mbg.generated-->
update sys_pdf_template_relevance_code
<set>
<if test="templateId != null">
templateId = #{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customerId = #{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
adminId = #{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
moduleId = #{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
localAction = #{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
remark1 = #{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
remark2 = #{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
remark3 = #{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
printType = #{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
modelKey = #{modelKey,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
<!--@mbg.generated-->
update sys_pdf_template_relevance_code
set templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update sys_pdf_template_relevance_code
<trim prefix="set" suffixOverrides=",">
<trim prefix="templateId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="customerId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="adminId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="moduleId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="localAction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark3 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="printType = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="modelKey = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update sys_pdf_template_relevance_code
<trim prefix="set" suffixOverrides=",">
<trim prefix="templateId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.templateId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="customerId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="adminId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.adminId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="moduleId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.moduleId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="localAction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.localAction != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark1 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark2 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark3 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark3 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="printType = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.printType != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="modelKey = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.modelKey != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_code
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey)
values
<foreach collection="list" item="item" separator=",">
(#{item.templateId,jdbcType=INTEGER}, #{item.customerId,jdbcType=BIGINT}, #{item.adminId,jdbcType=INTEGER},
#{item.moduleId,jdbcType=INTEGER}, #{item.localAction,jdbcType=VARCHAR}, #{item.remark1,jdbcType=VARCHAR},
#{item.remark2,jdbcType=VARCHAR}, #{item.remark3,jdbcType=VARCHAR}, #{item.printType,jdbcType=TINYINT},
#{item.modelKey,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
templateId,
customerId,
adminId,
moduleId,
localAction,
remark1,
remark2,
remark3,
printType,
modelKey,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{templateId,jdbcType=INTEGER},
#{customerId,jdbcType=BIGINT},
#{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER},
#{localAction,jdbcType=VARCHAR},
#{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR},
#{remark3,jdbcType=VARCHAR},
#{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_code
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="templateId != null">
templateId,
</if>
<if test="customerId != null">
customerId,
</if>
<if test="adminId != null">
adminId,
</if>
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
select basic_bussiness_type.`name` localActionName,
sys_pdf_template_relevance_code.id,
basic_bussiness_type.action localAction,
templateId,
moduleId,
sys_pdf_template.name templateName,
sys_pdf_template_relevance_code.remark1,
sys_pdf_template_relevance_code.remark2,
sys_pdf_template_relevance_code.remark3,
printType
from basic_bussiness_type
LEFT JOIN sys_pdf_template_relevance_code on basic_bussiness_type.action = sys_pdf_template_relevance_code.localAction
LEFT JOIN sys_pdf_template on sys_pdf_template_relevance_code.templateId = sys_pdf_template.id
<where>
<if test="moduleId != null">
moduleId,
AND `moduleId` = #{moduleId}
</if>
<if test="localAction != null">
localAction,
</if>
<if test="remark1 != null">
remark1,
</if>
<if test="remark2 != null">
remark2,
</if>
<if test="remark3 != null">
remark3,
AND sys_pdf_template_relevance_code.`localAction` = #{localAction}
</if>
<if test="printType != null">
printType,
<if test="templateType != null">
AND sys_pdf_template_relevance_code.`templateType` = #{templateType}
</if>
<if test="modelKey != null">
modelKey,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="templateId != null">
#{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
#{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
#{moduleId,jdbcType=INTEGER},
AND sys_pdf_template_relevance_code.`modelKey` = #{modelKey}
</if>
<if test="localAction != null">
#{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
#{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
#{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
#{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
#{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
#{modelKey,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="templateId != null">
templateId = #{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customerId = #{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
adminId = #{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
moduleId = #{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
localAction = #{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
remark1 = #{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
remark2 = #{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
remark3 = #{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
printType = #{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
modelKey = #{modelKey,jdbcType=VARCHAR},
</if>
</trim>
</where>
</select>
<insert id="upInsert" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceCodeEntity">
insert
ignore
INTO sys_pdf_template_relevance_code
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3, printType,modelKey)
values (#{templateId},
#{customerId},
#{adminId},
#{moduleId},
#{localAction},
#{remark1},
#{remark2},
#{remark3},
#{printType},
#{modelKey}
)
</insert>
</mapper>

@ -21,462 +21,36 @@
id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from sys_pdf_template_relevance_label
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from sys_pdf_template_relevance_label
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_label (templateId, customerId, adminId,
moduleId, localAction, remark1,
remark2, remark3, printType,
modelKey)
values (#{templateId,jdbcType=INTEGER}, #{customerId,jdbcType=BIGINT}, #{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER}, #{localAction,jdbcType=VARCHAR}, #{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR}, #{remark3,jdbcType=VARCHAR}, #{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_label
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="templateId != null">
templateId,
</if>
<if test="customerId != null">
customerId,
</if>
<if test="adminId != null">
adminId,
</if>
<if test="moduleId != null">
moduleId,
</if>
<if test="localAction != null">
localAction,
</if>
<if test="remark1 != null">
remark1,
</if>
<if test="remark2 != null">
remark2,
</if>
<if test="remark3 != null">
remark3,
</if>
<if test="printType != null">
printType,
</if>
<if test="modelKey != null">
modelKey,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="templateId != null">
#{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
#{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
#{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
#{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
#{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
#{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
#{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
#{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
#{modelKey,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity">
<!--@mbg.generated-->
update sys_pdf_template_relevance_label
<set>
<if test="templateId != null">
templateId = #{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customerId = #{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
adminId = #{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
moduleId = #{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
localAction = #{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
remark1 = #{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
remark2 = #{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
remark3 = #{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
printType = #{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
modelKey = #{modelKey,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity">
<!--@mbg.generated-->
update sys_pdf_template_relevance_label
set templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update sys_pdf_template_relevance_label
<trim prefix="set" suffixOverrides=",">
<trim prefix="templateId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="customerId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="adminId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="moduleId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="localAction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark3 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="printType = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="modelKey = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update sys_pdf_template_relevance_label
<trim prefix="set" suffixOverrides=",">
<trim prefix="templateId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.templateId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="customerId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="adminId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.adminId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="moduleId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.moduleId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="localAction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.localAction != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark1 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark2 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark3 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark3 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="printType = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.printType != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="modelKey = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.modelKey != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_label
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey)
values
<foreach collection="list" item="item" separator=",">
(#{item.templateId,jdbcType=INTEGER}, #{item.customerId,jdbcType=BIGINT}, #{item.adminId,jdbcType=INTEGER},
#{item.moduleId,jdbcType=INTEGER}, #{item.localAction,jdbcType=VARCHAR}, #{item.remark1,jdbcType=VARCHAR},
#{item.remark2,jdbcType=VARCHAR}, #{item.remark3,jdbcType=VARCHAR}, #{item.printType,jdbcType=TINYINT},
#{item.modelKey,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_label
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
templateId,
customerId,
adminId,
moduleId,
localAction,
remark1,
remark2,
remark3,
printType,
modelKey,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{templateId,jdbcType=INTEGER},
#{customerId,jdbcType=BIGINT},
#{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER},
#{localAction,jdbcType=VARCHAR},
#{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR},
#{remark3,jdbcType=VARCHAR},
#{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceLabelEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_label
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="templateId != null">
templateId,
</if>
<if test="customerId != null">
customerId,
</if>
<if test="adminId != null">
adminId,
</if>
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
SELECT
sys_pdf_template_relevance_label.id,
sys_pdf_template_relevance_label.localAction localActionName,
templateId,
moduleId,
sys_pdf_template.NAME templateName,
sys_pdf_template_relevance_label.remark1,
sys_pdf_template_relevance_label.remark2,
sys_pdf_template_relevance_label.remark3,
printType
FROM
sys_pdf_template_relevance_label
LEFT JOIN sys_pdf_template ON sys_pdf_template_relevance_label.templateId = sys_pdf_template.id
<where>
<if test="moduleId != null">
moduleId,
AND `moduleId` = #{moduleId}
</if>
<if test="localAction != null">
localAction,
</if>
<if test="remark1 != null">
remark1,
</if>
<if test="remark2 != null">
remark2,
AND sys_pdf_template_relevance_label.`localAction` = #{localAction}
</if>
<if test="remark3 != null">
remark3,
</if>
<if test="printType != null">
printType,
<if test="templateType != null">
AND sys_pdf_template_relevance_label.`templateType` = #{templateType}
</if>
<if test="modelKey != null">
modelKey,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="templateId != null">
#{templateId,jdbcType=INTEGER},
AND sys_pdf_template_relevance_label.`modelKey` = #{modelKey}
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
#{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
#{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
#{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
#{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
#{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
#{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
#{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
#{modelKey,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="templateId != null">
templateId = #{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customerId = #{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
adminId = #{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
moduleId = #{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
localAction = #{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
remark1 = #{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
remark2 = #{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
remark3 = #{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
printType = #{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
modelKey = #{modelKey,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</where>
</select>
</mapper>

@ -21,462 +21,37 @@
id, templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey
</sql>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List" />
from sys_pdf_template_relevance_statemen
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete from sys_pdf_template_relevance_statemen
where id = #{id,jdbcType=INTEGER}
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_statemen (templateId, customerId, adminId,
moduleId, localAction, remark1,
remark2, remark3, printType,
modelKey)
values (#{templateId,jdbcType=INTEGER}, #{customerId,jdbcType=BIGINT}, #{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER}, #{localAction,jdbcType=VARCHAR}, #{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR}, #{remark3,jdbcType=VARCHAR}, #{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_statemen
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="templateId != null">
templateId,
</if>
<if test="customerId != null">
customerId,
</if>
<if test="adminId != null">
adminId,
</if>
<if test="moduleId != null">
moduleId,
</if>
<if test="localAction != null">
localAction,
</if>
<if test="remark1 != null">
remark1,
</if>
<if test="remark2 != null">
remark2,
</if>
<if test="remark3 != null">
remark3,
</if>
<if test="printType != null">
printType,
</if>
<if test="modelKey != null">
modelKey,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="templateId != null">
#{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
#{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
#{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
#{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
#{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
#{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
#{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
#{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
#{modelKey,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity">
<!--@mbg.generated-->
update sys_pdf_template_relevance_statemen
<set>
<if test="templateId != null">
templateId = #{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customerId = #{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
adminId = #{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
moduleId = #{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
localAction = #{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
remark1 = #{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
remark2 = #{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
remark3 = #{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
printType = #{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
modelKey = #{modelKey,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity">
<!--@mbg.generated-->
update sys_pdf_template_relevance_statemen
set templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateBatch" parameterType="java.util.List">
<!--@mbg.generated-->
update sys_pdf_template_relevance_statemen
<trim prefix="set" suffixOverrides=",">
<trim prefix="templateId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="customerId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
</foreach>
</trim>
<trim prefix="adminId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="moduleId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
</foreach>
</trim>
<trim prefix="localAction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="remark3 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
</foreach>
</trim>
<trim prefix="printType = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
</foreach>
</trim>
<trim prefix="modelKey = case" suffix="end,">
<foreach collection="list" index="index" item="item">
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<update id="updateBatchSelective" parameterType="java.util.List">
<!--@mbg.generated-->
update sys_pdf_template_relevance_statemen
<trim prefix="set" suffixOverrides=",">
<trim prefix="templateId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.templateId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.templateId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="customerId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.customerId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.customerId,jdbcType=BIGINT}
</if>
</foreach>
</trim>
<trim prefix="adminId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.adminId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.adminId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="moduleId = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.moduleId != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.moduleId,jdbcType=INTEGER}
</if>
</foreach>
</trim>
<trim prefix="localAction = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.localAction != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.localAction,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark1 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark1 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark1,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark2 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark2 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark2,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="remark3 = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.remark3 != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.remark3,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
<trim prefix="printType = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.printType != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.printType,jdbcType=TINYINT}
</if>
</foreach>
</trim>
<trim prefix="modelKey = case" suffix="end,">
<foreach collection="list" index="index" item="item">
<if test="item.modelKey != null">
when id = #{item.id,jdbcType=INTEGER} then #{item.modelKey,jdbcType=VARCHAR}
</if>
</foreach>
</trim>
</trim>
where id in
<foreach close=")" collection="list" item="item" open="(" separator=", ">
#{item.id,jdbcType=INTEGER}
</foreach>
</update>
<insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_statemen
(templateId, customerId, adminId, moduleId, localAction, remark1, remark2, remark3,
printType, modelKey)
values
<foreach collection="list" item="item" separator=",">
(#{item.templateId,jdbcType=INTEGER}, #{item.customerId,jdbcType=BIGINT}, #{item.adminId,jdbcType=INTEGER},
#{item.moduleId,jdbcType=INTEGER}, #{item.localAction,jdbcType=VARCHAR}, #{item.remark1,jdbcType=VARCHAR},
#{item.remark2,jdbcType=VARCHAR}, #{item.remark3,jdbcType=VARCHAR}, #{item.printType,jdbcType=TINYINT},
#{item.modelKey,jdbcType=VARCHAR})
</foreach>
</insert>
<insert id="insertOrUpdate" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_statemen
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
templateId,
customerId,
adminId,
moduleId,
localAction,
remark1,
remark2,
remark3,
printType,
modelKey,
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
#{templateId,jdbcType=INTEGER},
#{customerId,jdbcType=BIGINT},
#{adminId,jdbcType=INTEGER},
#{moduleId,jdbcType=INTEGER},
#{localAction,jdbcType=VARCHAR},
#{remark1,jdbcType=VARCHAR},
#{remark2,jdbcType=VARCHAR},
#{remark3,jdbcType=VARCHAR},
#{printType,jdbcType=TINYINT},
#{modelKey,jdbcType=VARCHAR},
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
templateId = #{templateId,jdbcType=INTEGER},
customerId = #{customerId,jdbcType=BIGINT},
adminId = #{adminId,jdbcType=INTEGER},
moduleId = #{moduleId,jdbcType=INTEGER},
localAction = #{localAction,jdbcType=VARCHAR},
remark1 = #{remark1,jdbcType=VARCHAR},
remark2 = #{remark2,jdbcType=VARCHAR},
remark3 = #{remark3,jdbcType=VARCHAR},
printType = #{printType,jdbcType=TINYINT},
modelKey = #{modelKey,jdbcType=VARCHAR},
</trim>
</insert>
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id" parameterType="com.glxp.api.entity.system.SysPdfTemplateRelevanceStatemenEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
insert into sys_pdf_template_relevance_statemen
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="templateId != null">
templateId,
</if>
<if test="customerId != null">
customerId,
</if>
<if test="adminId != null">
adminId,
</if>
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
SELECT
sys_pdf_template_relevance_statemen.id,
sys_pdf_template_relevance_statemen.localAction localActionName,
templateId,
moduleId,
sys_pdf_template.NAME templateName,
sys_pdf_template_relevance_statemen.remark1,
sys_pdf_template_relevance_statemen.remark2,
sys_pdf_template_relevance_statemen.remark3,
printType
FROM
sys_pdf_template_relevance_statemen
LEFT JOIN sys_pdf_template ON sys_pdf_template_relevance_statemen.templateId = sys_pdf_template.id
<where>
<if test="moduleId != null">
moduleId,
AND `moduleId` = #{moduleId}
</if>
<if test="localAction != null">
localAction,
</if>
<if test="remark1 != null">
remark1,
</if>
<if test="remark2 != null">
remark2,
AND sys_pdf_template_relevance_statemen.`localAction` = #{localAction}
</if>
<if test="remark3 != null">
remark3,
</if>
<if test="printType != null">
printType,
<if test="templateType != null">
AND sys_pdf_template_relevance_statemen.`templateType` = #{templateType}
</if>
<if test="modelKey != null">
modelKey,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=INTEGER},
</if>
<if test="templateId != null">
#{templateId,jdbcType=INTEGER},
AND sys_pdf_template_relevance_statemen.`modelKey` = #{modelKey}
</if>
<if test="customerId != null">
#{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
#{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
#{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
#{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
#{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
#{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
#{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
#{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
#{modelKey,jdbcType=VARCHAR},
</if>
</trim>
on duplicate key update
<trim suffixOverrides=",">
<if test="id != null">
id = #{id,jdbcType=INTEGER},
</if>
<if test="templateId != null">
templateId = #{templateId,jdbcType=INTEGER},
</if>
<if test="customerId != null">
customerId = #{customerId,jdbcType=BIGINT},
</if>
<if test="adminId != null">
adminId = #{adminId,jdbcType=INTEGER},
</if>
<if test="moduleId != null">
moduleId = #{moduleId,jdbcType=INTEGER},
</if>
<if test="localAction != null">
localAction = #{localAction,jdbcType=VARCHAR},
</if>
<if test="remark1 != null">
remark1 = #{remark1,jdbcType=VARCHAR},
</if>
<if test="remark2 != null">
remark2 = #{remark2,jdbcType=VARCHAR},
</if>
<if test="remark3 != null">
remark3 = #{remark3,jdbcType=VARCHAR},
</if>
<if test="printType != null">
printType = #{printType,jdbcType=TINYINT},
</if>
<if test="modelKey != null">
modelKey = #{modelKey,jdbcType=VARCHAR},
</if>
</trim>
</insert>
</where>
</select>
</mapper>

@ -6,15 +6,21 @@
<select id="queryPage" parameterType="com.glxp.api.req.system.FilterPdfModuleRequest"
resultType="com.glxp.api.entity.system.SystemPDFModuleEntity">
SELECT id,name,param,fieldExplain,remark,templateId,create_time,update_time,templateDlUrl,templateType
,remark1,remark2,remark3
,remark1,remark2,remark3,modelKey
FROM sys_pdf_module
<where>
<if test="templateId != null and '' != templateId">
AND `templateId` LIKE CONCAT(#{templateId},'%')
</if>
<if test="modelKey != null and '' != modelKey">
AND `modelKey` LIKE CONCAT(#{modelKey},'%')
</if>
<if test="name != null and '' != name">
AND `name` LIKE CONCAT('%',#{name},'%')
</if>
<if test="templateType != null">
AND templateType=#{templateType}
</if>
</where>
</select>

Loading…
Cancel
Save