1.替换crud方法为mybatis plus自带方法

master
x_z 3 years ago
parent dae03cdff0
commit a6748519f0

@ -22,7 +22,7 @@ public interface AuthPermissionRuleDao extends BaseMapper<AuthPermissionRule> {
/**
*
*
* @param map
* @param status
* @return
*/
List<AuthPermissionRule> listAll(@Param("status") String status);
@ -59,19 +59,4 @@ public interface AuthPermissionRuleDao extends BaseMapper<AuthPermissionRule> {
*/
boolean updateAuthPermissionRule(AuthPermissionRule authPermissionRule);
/**
*
*
* @param id
* @return
*/
boolean deleteById(Long id);
/**
* ID
*
* @param id
* @return
*/
AuthPermissionRule selectById(@Param("id") Long id);
}

@ -48,12 +48,4 @@ public interface AuthRoleDao extends BaseMapper<AuthRole> {
*/
boolean updateAuthRole(AuthRole authAdmin);
/**
*
*
* @param id
* @return
*/
boolean deleteById(Long id);
}

@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.glxp.udi.admin.entity.auth.CustomerContactEntity;
import com.glxp.udi.admin.req.auth.CustomerContactFilterRequest;
import com.glxp.udi.admin.req.info.DeleteRequest;
import org.apache.ibatis.annotations.Mapper;
@Mapper
@ -16,10 +15,4 @@ public interface CustomerContacDao extends BaseMapper<CustomerContactEntity> {
boolean updateCustomerContact(CustomerContactEntity customerContactEntity);
boolean deleteById(Long customerId);
CustomerContactEntity selectById(Long customerId);
boolean deleteContact(DeleteRequest deleteRequest);
}

@ -18,8 +18,6 @@ public interface CustomerInfoDao extends BaseMapper<CustomerInfoEntity> {
boolean deleteById(Long customerId);
CustomerInfoEntity selectById(Long customerId);
CustomerDetailEntity selectDetail(Long customerId);
/**

@ -11,10 +11,6 @@ public interface UserRegisterDao extends BaseMapper<UserRegisterEntity> {
boolean updateUserRegister(UserRegisterEntity userRegisterEntity);
boolean deleteById(Long id);
UserRegisterEntity selectById(Integer id);
UserRegisterEntity selectByCustomerId(Long id);
UserRegisterEntity selectByMobile(String phone);

@ -20,9 +20,10 @@ public interface BasicBussinessTypeRoleDao extends BaseMapper<BasicBussinessType
void deleteByRoleId(@Param("roleId") Long roleId);
/**
*
*
*
* @param basicBussinessTypeRoleEntities
* @param list
*/
void insert(@Param("basicBussinessTypeRoleEntities") List<BasicBussinessTypeRoleEntity> basicBussinessTypeRoleEntities);
void batchInsert(List<BasicBussinessTypeRoleEntity> list);
}

@ -13,9 +13,6 @@ import java.util.List;
@Mapper
public interface BussinessTypeDao extends BaseMapper<BussinessTypeEntity> {
BussinessTypeEntity selectById(String id);
Page<BussinessTypeEntity> filterList(Page<BussinessTypeEntity>page, BussinessTypeFilterRequest bussinessTypeFilterRequest);
Page<BussinessTypResponse> filterJoinList(Page<BussinessTypResponse> page, BussinessTypeFilterRequest bussinessTypeFilterRequest);
@ -29,8 +26,6 @@ public interface BussinessTypeDao extends BaseMapper<BussinessTypeEntity> {
boolean updateBussinessType(BussinessTypeEntity bussinessTypeEntity);
boolean deleteById(@Param("id") String id);
BussinessTypeEntity selectByAction(String action);
/**

@ -22,5 +22,4 @@ public interface CompanyUpdateLogDao extends BaseMapper<CompanyUpdateLogEntity>
boolean insertCompanyUpdateLog(CompanyUpdateLogEntity companyUpdateLogEntity);
boolean deleteById(String id);
}

@ -18,8 +18,6 @@ public interface PlatformDao extends BaseMapper<PlatformEntity> {
int batchSave(List<PlatformEntity> list);
int remove(String id);
int update(PlatformEntity platformEntity);
Page<PlatformEntity> list(Page<PlatformEntity> page, Map<String, Object> map);

@ -17,8 +17,6 @@ public interface StockQRCodeTextDao extends BaseMapper<StockQRCodeTextEntity> {
boolean insertStockQRCodeTexts(@Param("StockQRCodeTextEntities") List<StockQRCodeTextEntity> StockQRCodeTextEntitys);
boolean deleteById(@Param("id") String id);
boolean deleteByOrderId(@Param("id") String id);
StockQRCodeTextEntity findOne(@Param("id") String id);

@ -16,8 +16,6 @@ public interface UdiInfoDao extends BaseMapper<UdiInfoEntity> {
List<UdiInfoEntity> findByUuids(@Param("uuid") String uuid, @Param("customerId") String customerId);
UdiInfoEntity selectById(@Param("id") String id);
boolean insertUdiInfo(UdiInfoEntity udiInfoEntity);
boolean insertUdiInfos(@Param("udiInfoEntities") List<UdiInfoEntity> udiInfoEntities);
@ -26,8 +24,6 @@ public interface UdiInfoDao extends BaseMapper<UdiInfoEntity> {
boolean updateUdiInfoByUuid(UdiInfoEntity udiInfoEntity);
boolean deleteById(@Param("id") String id);
boolean deleteByUuid(@Param("uuid") String uuid, @Param("customerId") String customerId);
}

@ -19,8 +19,6 @@ public interface UdiRelevanceDao extends BaseMapper<UdiRelevanceEntity> {
List<UdiRelevanceEntity> selectByUuid(@Param("uuid") String uuid);
UdiRelevanceEntity selectById(@Param("id") String id);
UdiRelevanceEntity selectByThirdId(@Param("thirdId") String thirdId);
boolean insertUdiRelevance(UdiRelevanceEntity udiRelevanceEntity);

@ -16,8 +16,6 @@ public interface UnitMaintainDao extends BaseMapper<UnitMaintainEntity> {
boolean deleteById(@Param("id") String id);
UnitMaintainEntity selectById(@Param("id") String id);
boolean updateUnit(UnitMaintainEntity unitMaintainEntity);
UnitMaintainEntity selectByName(@Param("name") String fromCorp);
@ -31,8 +29,8 @@ public interface UnitMaintainDao extends BaseMapper<UnitMaintainEntity> {
/**
*
*
* @param unitMaintainFilterRequest
* @param page
* @param customerId
* @return
*/
Page<UnitMaintainEntity> getUnbindUnitMaintain(Page<UnitMaintainEntity> page, String customerId);

@ -14,8 +14,6 @@ public interface SystemPDFModuleDao extends BaseMapper<SystemPDFModuleEntity> {
Page<SystemPDFModuleEntity> listPDFModules(Page<SystemPDFModuleEntity> page);
SystemPDFModuleEntity selectById(String id);
boolean updateById(SystemPDFModuleSaveRequest systemPDFModuleSaveRequest);
boolean insertData(SystemPDFModuleEntity systemPDFModuleEntity);

@ -12,11 +12,8 @@ public interface SystemPDFTemplateDao extends BaseMapper<SystemPDFTemplateEntity
Page<SystemPDFTemplateEntity> listPDFTemplates(Page<SystemPDFTemplateEntity> page);
SystemPDFTemplateEntity selectById(String id);
boolean updateById(SystemPDFTemplateSaveRequest systemPDFTemplateSaveRequest);
boolean insertData(SystemPDFTemplateEntity systemPDFTemplateEntity);
/**
*

@ -1,5 +1,6 @@
package com.glxp.udi.admin.entity.auth;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@ -7,6 +8,7 @@ import lombok.Data;
@TableName("customer_info")
public class CustomerInfoEntity {
@TableId("customerId")
private Long customerId;
private String customerName;

@ -12,10 +12,14 @@ public class BasicBussinessTypeRoleEntity {
private Integer id;
//角色id
/**
* id
*/
private Long role_id;
//业务类型
/**
*
*/
private String action;
}

@ -1,6 +1,7 @@
package com.glxp.udi.admin.entity.info;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
@ -14,13 +15,30 @@ import java.util.Date;
@TableName("company")
public class CompanyEntity {
private String companyName; //企业名称
@TableId
@JsonSerialize(using = LongJsonSerializer.class)
@JsonDeserialize(using = LongJsonDeserializer.class)
private Long customerId;
/**
*
*/
private String companyName;
private Integer bussinessStatus; //企业类型
/**
*
*/
private Integer bussinessStatus;
private String creditNum; //统一社会信用代码
/**
*
*/
private String creditNum;
private String classes; //企业类别 //企业类别1.生产企业2.流通企业3。医疗机构
/**
* //企业类别1.生产企业2.流通企业3。医疗机构
*/
private String classes;
private String area;
@ -32,10 +50,6 @@ public class CompanyEntity {
private String appSecret;
@JsonSerialize(using = LongJsonSerializer.class)
@JsonDeserialize(using = LongJsonDeserializer.class)
private Long customerId;
private String contacts;
private String mobile;

@ -107,6 +107,10 @@ public class AuthPermissionRuleService {
* @return
*/
public boolean deleteById(Long id) {
return authPermissionRuleDao.deleteById(id);
int i = authPermissionRuleDao.deleteById(id);
if (i > 0) {
return true;
}
return false;
}
}

@ -105,7 +105,11 @@ public class AuthRoleService {
* @return
*/
public boolean deleteById(Long id) {
return authRoleDao.deleteById(id);
int i = authRoleDao.deleteById(id);
if (i > 0) {
return true;
}
return false;
}
public List<BasicBussinessTypeRoleEntity> getBussinessTypeRole(Long roleId) {
@ -123,7 +127,7 @@ public class AuthRoleService {
entity.setAction(action);
data.add(entity);
});
basicBussinessTypeRoleDao.insert(data);
basicBussinessTypeRoleDao.batchInsert(data);
}
}

@ -1,10 +1,10 @@
package com.glxp.udi.admin.service.auth;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.glxp.udi.admin.dao.auth.CustomerContacDao;
import com.glxp.udi.admin.entity.auth.CustomerContactEntity;
import com.glxp.udi.admin.req.auth.CustomerContactFilterRequest;
import com.glxp.udi.admin.req.info.DeleteRequest;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -36,15 +36,14 @@ public class CustomerContactService {
}
public boolean deleteById(Long id) {
return customerContacDao.deleteById(id);
}
public boolean deleteContact(DeleteRequest deleteRequest) {
return customerContacDao.deleteContact(deleteRequest);
int i = customerContacDao.deleteById(id);
if (i > 0) {
return true;
}
return false;
}
public CustomerContactEntity selectById(Long emailId) {
return customerContacDao.selectById(emailId);
return customerContacDao.selectOne(new QueryWrapper<CustomerContactEntity>().eq("customerId", emailId));
}
}

@ -40,7 +40,11 @@ public class UserRegisterService {
}
public boolean deleteById(Long id) {
return userRegisterDao.deleteById(id);
int i = userRegisterDao.deleteById(id);
if (i > 0) {
return true;
}
return false;
}

@ -1,5 +1,6 @@
package com.glxp.udi.admin.service.basic;
import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.util.StrUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
@ -87,13 +88,13 @@ public class BussinessTypeService {
}
public BussinessTypeEntity findBTByAction(String action, String customerId) {
BussinessTypeFilterRequest bussinessTypeFilterRequest = new BussinessTypeFilterRequest();
bussinessTypeFilterRequest.setAction(action);
bussinessTypeFilterRequest.setCustomerId(customerId);
Page<BussinessTypeEntity> page = new Page<>(-1, -1);
Page<BussinessTypeEntity> data = bussinessTypeDao.filterList(page, bussinessTypeFilterRequest);
if (data != null && data.getTotal() > 0) {
return data.getRecords().get(0);
QueryWrapper<BussinessTypeEntity> wrapper = new QueryWrapper<>();
wrapper.like(StrUtil.isNotBlank(action), "action", action)
.eq(StrUtil.isNotBlank(customerId), "customerId", customerId);
List<BussinessTypeEntity> list = bussinessTypeDao.selectList(wrapper);
if (CollUtil.isNotEmpty(list)) {
return list.get(0);
}
return null;
}
@ -118,7 +119,11 @@ public class BussinessTypeService {
}
public boolean deleteById(String id) {
return bussinessTypeDao.deleteById(id);
int i = bussinessTypeDao.deleteById(id);
if (i > 0) {
return true;
}
return false;
}
/**

@ -21,6 +21,10 @@ public class CompanyUpdateLogService {
}
public boolean deleteById(String id) {
return companyUpdateLogDao.deleteById(id);
int i = companyUpdateLogDao.deleteById(id);
if (i > 0) {
return true;
}
return false;
}
}

@ -44,7 +44,7 @@ public class PlatformService {
}
public int remove(String id) {
return platformDao.remove(id);
return platformDao.deleteById(id);
}
public BaseResponse update(PlatformEntity platformEntity) {
@ -121,16 +121,6 @@ public class PlatformService {
unitMaintainDao.unbindPlatform(corpId);
}
/**
*
*
* @param params
* @return
*/
public List<PlatformEntity> getUnbindList(long customerId) {
return platformDao.getUnbindList(customerId);
}
/**
*
*

@ -21,7 +21,11 @@ public class StockQRCodeTextService {
}
public boolean deleteById(String id) {
return stockQRCodeTextDao.deleteById(id);
int i = stockQRCodeTextDao.deleteById(id);
if (i > 0) {
return true;
}
return false;
}
}

@ -44,7 +44,11 @@ public class SystemPDFTemplateService {
}
public boolean insert(SystemPDFTemplateEntity systemPDFTemplateEntity) {
return systemPDFTemplateDao.insertData(systemPDFTemplateEntity);
int insert = systemPDFTemplateDao.insert(systemPDFTemplateEntity);
if (insert > 0) {
return true;
}
return false;
}
public boolean deleteById(Integer id) {

@ -34,10 +34,6 @@
limit 1
</select>
<select id="selectById" resultType="com.glxp.udi.admin.entity.auth.AuthPermissionRule">
select * from auth_permission_rule where id = #{id}
</select>
<insert id="insertAuthPermissionRule" keyProperty="id"
parameterType="com.glxp.udi.admin.entity.auth.AuthPermissionRule">
INSERT INTO auth_permission_rule(pid,`name`,`title`,`status`,`condition`,`listorder`,create_time,update_time)
@ -87,7 +83,4 @@
WHERE id=#{id}
</update>
<delete id="deleteById" parameterType="java.lang.Long">
delete from auth_permission_rule where id = #{id}
</delete>
</mapper>

@ -111,7 +111,4 @@
WHERE id=#{id}
</update>
<delete id="deleteById" parameterType="java.lang.Long">
delete from auth_role where id = #{id}
</delete>
</mapper>

@ -52,18 +52,4 @@
WHERE customerId=#{customerId}
</update>
<delete id="deleteById" parameterType="java.lang.Long">
delete from customer_contact where customerId = #{customerId}
</delete>
<delete id="deleteContact" parameterType="com.glxp.udi.admin.req.info.DeleteRequest">
delete from customer_contact where customerId = #{customerId}
</delete>
<select id="selectById" parameterType="java.lang.Long"
resultType="com.glxp.udi.admin.entity.auth.CustomerContactEntity">
SELECT *
FROM customer_contact WHERE (
customerId = #{customerId} ) limit 1
</select>
</mapper>

@ -118,15 +118,6 @@
where customerId = #{customerId}
</delete>
<select id="selectById" parameterType="java.lang.Long"
resultType="com.glxp.udi.admin.entity.auth.CustomerInfoEntity">
SELECT *
FROM customer_info
WHERE (
customerId = #{customerId}) limit 1
</select>
<select id="selectCustomerIdByCustomerName" resultType="java.lang.String">
select customerId from customer_info where companyName like concat('%',#{customerName},'%')
</select>

@ -82,23 +82,11 @@
WHERE id=#{id}
</update>
<delete id="deleteById" parameterType="java.lang.Long">
delete
from user_register
where id = #{id}
</delete>
<delete id="deleteByCustomerId" parameterType="java.lang.Long">
delete
from user_register
where userId = #{userId}
</delete>
<select id="selectById" parameterType="java.lang.Integer"
resultType="com.glxp.udi.admin.entity.auth.UserRegisterEntity">
SELECT *
FROM user_register
WHERE id = #{id}
</select>
<select id="selectByMobile" parameterType="java.lang.String"
resultType="com.glxp.udi.admin.entity.auth.UserRegisterEntity">

@ -3,40 +3,6 @@
<mapper namespace="com.glxp.udi.admin.dao.basic.BussinessTypeDao">
<select id="filterList" parameterType="com.glxp.udi.admin.req.basic.BussinessTypeFilterRequest"
resultType="com.glxp.udi.admin.entity.basic.BussinessTypeEntity">
SELECT
basic_bussiness_type.id,basic_bussiness_type.action,basic_bussiness_type.name,
basic_bussiness_type.enable,basic_bussiness_type.remark,basic_bussiness_type.mainAction,
basic_bussiness_type.thirdSysFk,basic_bussiness_type.localAction,basic_bussiness_type.secCheckEnable,
basic_bussiness_type.checkUdims,basic_bussiness_type.checkPdaEd,basic_bussiness_type.checkPdaUn,basic_bussiness_type.checkPc,
basic_bussiness_type.checkWebNew,basic_bussiness_type.checkChange,
basic_bussiness_type.secCheckUdims, basic_bussiness_type.secCheckPdaEd, basic_bussiness_type.secCheckPdaUn,
basic_bussiness_type.secCheckWebNew, basic_bussiness_type.secCheckChange,
basic_bussiness_type.checkEnable,basic_bussiness_type.prefix,
basic_bussiness_type.genUnit,basic_bussiness_type.innerOrder,
corpType,basic_bussiness_type.storageCode,basic_bussiness_type.checkBalacne,
basic_bussiness_type.secCheckBalacne, defaultUnit, basic_bussiness_type.supplementOrderType
FROM basic_bussiness_type
<where>
<if test="name != ''and name != null">
AND basic_bussiness_type.name LIKE concat('%',#{name},'%')
</if>
<if test="action != ''and action != null">
AND basic_bussiness_type.action LIKE concat('%',#{action},'%')
</if>
<if test="mainAction != ''and mainAction != null">
AND basic_bussiness_type.mainAction LIKE concat('%',#{mainAction},'%')
</if>
<if test="enabled != null">
AND basic_bussiness_type.enable = #{enabled}
</if>
<if test="customerId != null and customerId != ''">
AND basic_bussiness_type.customerId = #{customerId}
</if>
</where>
</select>
<select id="filterJoinList" parameterType="com.glxp.udi.admin.req.basic.BussinessTypeFilterRequest"
resultType="com.glxp.udi.admin.res.basic.BussinessTypResponse">
select * from basic_bussiness_type
@ -283,19 +249,6 @@
where action = #{action}
</update>
<delete id="deleteById" parameterType="Map">
DELETE
FROM basic_bussiness_type
WHERE id = #{id}
</delete>
<select id="selectById" parameterType="Map" resultType="com.glxp.udi.admin.entity.basic.BussinessTypeEntity">
select *
FROM basic_bussiness_type
WHERE id = #{id}
</select>
<select id="selectByAction" resultType="com.glxp.udi.admin.entity.basic.BussinessTypeEntity">
select *
from basic_bussiness_type

@ -14,11 +14,11 @@
where role_id = #{roleId}
</delete>
<insert id="insert" parameterType="com.glxp.udi.admin.entity.basic.BasicBussinessTypeRoleEntity">
<insert id="batchInsert" parameterType="com.glxp.udi.admin.entity.basic.BasicBussinessTypeRoleEntity">
insert into basic_bussiness_type_role
(role_id, action)
values
<foreach collection="basicBussinessTypeRoleEntities" index="index" item="item" separator=",">
<foreach collection="list" index="index" item="item" separator=",">
(#{item.role_id},
#{item.action})
</foreach>

@ -90,10 +90,4 @@
)
</insert>
<delete id="deleteById" parameterType="Map">
DELETE
FROM company_update_log
WHERE id = #{id}
</delete>
</mapper>

@ -21,12 +21,6 @@
</foreach>
</insert>
<delete id="remove">
delete
from auth_platform
where id = #{value}
</delete>
<update id="update" parameterType="com.glxp.udi.admin.entity.info.PlatformEntity">
update auth_platform
<set>
@ -96,13 +90,6 @@
</where>
</select>
<select id="getUnbindList" resultType="com.glxp.udi.admin.entity.info.PlatformEntity">
select *
from auth_platform
where id not in (select platformId
from io_unit_maintain
where customerId = #{customerId} and (platformId is not null or platformId != ''))
</select>
<select id="selectByNameAndHost" resultType="com.glxp.udi.admin.entity.info.PlatformEntity">
select * from auth_platform where name = #{name} and host= #{host}
</select>

@ -58,12 +58,6 @@
</insert>
<delete id="deleteById" parameterType="Map">
DELETE
FROM stock_qrcode_text
WHERE id = #{id}
</delete>
<delete id="deleteByOrderId" parameterType="Map">
DELETE
FROM stock_qrcode_text

@ -17,14 +17,6 @@
AND customerId = #{customerId}
</select>
<select id="selectById" parameterType="java.lang.String"
resultType="com.glxp.udi.admin.entity.inout.UdiInfoEntity">
SELECT *
FROM io_productinfo
WHERE (id = #{id}) limit 1
</select>
<select id="findByNameCode" parameterType="java.lang.String"
resultType="com.glxp.udi.admin.entity.inout.UdiInfoEntity">
SELECT *
@ -139,12 +131,6 @@
</foreach>
</insert>
<delete id="deleteById" parameterType="Map">
DELETE
FROM io_productinfo
WHERE id = #{id}
</delete>
<delete id="deleteByUuid" parameterType="Map">
DELETE
FROM io_productinfo

@ -83,17 +83,11 @@
</where>
</select>
<select id="selectById" parameterType="java.lang.String"
resultType="com.glxp.udi.admin.entity.inout.UdiRelevanceEntity">
select * FROM udi_relevance WHERE id = #{id}
</select>
<select id="selectByThirdId" parameterType="java.lang.String"
resultType="com.glxp.udi.admin.entity.inout.UdiRelevanceEntity">
select * FROM udi_relevance WHERE thirdId = #{thirdId} limit 1
</select>
<insert id="insertUdiRelevance" keyProperty="id" parameterType="com.glxp.udi.admin.entity.inout.UdiRelevanceEntity">
replace INTO udi_relevance
(

@ -44,12 +44,6 @@
DELETE FROM io_unit_maintain WHERE id = #{id}
</delete>
<select id="selectById" parameterType="Map" resultType="com.glxp.udi.admin.entity.inout.UnitMaintainEntity">
select * FROM io_unit_maintain WHERE id = #{id}
</select>
<update id="updateUnit" parameterType="com.glxp.udi.admin.entity.inout.UnitMaintainEntity">
UPDATE io_unit_maintain
<set>

@ -16,11 +16,6 @@
</where>
</select>
<select id="selectById" parameterType="java.lang.String"
resultType="com.glxp.udi.admin.entity.param.SystemPDFModuleEntity">
select * FROM system_pdf_module WHERE id = #{id}
</select>
<update id="updateById" parameterType="com.glxp.udi.admin.entity.param.SystemPDFModuleEntity">
UPDATE system_pdf_module
<set>

@ -3,13 +3,6 @@
<mapper namespace="com.glxp.udi.admin.dao.param.SystemPDFTemplateDao">
<select id="selectById" parameterType="java.lang.String"
resultType="com.glxp.udi.admin.entity.param.SystemPDFTemplateEntity">
select *
FROM system_pdf_template
WHERE id = #{id}
</select>
<update id="updateById" parameterType="com.glxp.udi.admin.entity.param.SystemPDFTemplateEntity">
UPDATE system_pdf_template
<set>
@ -53,24 +46,6 @@
WHERE id=#{id}
</update>
<insert id="insertData" parameterType="com.glxp.udi.admin.entity.param.SystemPDFTemplateEntity">
insert INTO system_pdf_template(name,
type, module, param, path, rowCount, qrcodeCount, remark, create_time,
update_time, jrxmlPath, customerId)
values (#{name},
#{type},
#{module},
#{param},
#{path},
#{rowCount},
#{qrcodeCount},
#{remark},
#{create_time},
#{update_time},
#{jrxmlPath},
#{customerId})
</insert>
<select id="listPDFTemplates" parameterType="java.lang.Integer"
resultType="com.glxp.udi.admin.entity.param.SystemPDFTemplateEntity">
SELECT id, name

Loading…
Cancel
Save