导入详情
							parent
							
								
									7c764a8aa0
								
							
						
					
					
						commit
						fbc9a2a833
					
				| @ -0,0 +1,23 @@ | ||||
| package com.glxp.api.admin.dao.thrsys; | ||||
| 
 | ||||
| import com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| import org.apache.ibatis.annotations.Mapper; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
| 
 | ||||
| import java.util.List; | ||||
| 
 | ||||
| @Mapper | ||||
| public interface ThrCorpImportDetailDao { | ||||
|     List<ThrCorpImportDetailEntity> filterCorpDetailImport(FilterUdiIpLogRequest filterInCodeLogRequest); | ||||
| 
 | ||||
|     boolean insertCorpDetailImport(ThrCorpImportDetailEntity thrCorpImportDetailEntity); | ||||
| 
 | ||||
|     boolean updateCorpDetailImport(ThrCorpImportDetailEntity thrCorpImportDetailEntity); | ||||
| 
 | ||||
|     boolean insertCorpDetailImports(@Param("corps") List<ThrCorpImportDetailEntity> thrCorpImportDetailEntities); | ||||
| 
 | ||||
|     boolean deleteById(@Param("id") String id); | ||||
| 
 | ||||
|     boolean deleteByGenkey(@Param("genKey") String genKey); | ||||
| } | ||||
| @ -0,0 +1,23 @@ | ||||
| package com.glxp.api.admin.dao.thrsys; | ||||
| 
 | ||||
| import com.glxp.api.admin.entity.thrsys.ThrInvProductsImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| import org.apache.ibatis.annotations.Mapper; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
| 
 | ||||
| import java.util.List; | ||||
| 
 | ||||
| @Mapper | ||||
| public interface ThrInvProductsDetailDao { | ||||
|     List<ThrInvProductsImportDetailEntity> filterInvProductsDetailImport(FilterUdiIpLogRequest filterInCodeLogRequest); | ||||
| 
 | ||||
|     boolean insertInvProductsDetailImport(ThrInvProductsImportDetailEntity thrInvProductsImportDetailEntity); | ||||
| 
 | ||||
|     boolean updateInvProductsDetailImport(ThrInvProductsImportDetailEntity thrInvProductsImportDetailEntity); | ||||
| 
 | ||||
|     boolean insertInvProductsDetailImports(@Param("invProducts") List<ThrInvProductsImportDetailEntity> thrInvProductsImportDetailEntities); | ||||
| 
 | ||||
|     boolean deleteById(@Param("id") String id); | ||||
| 
 | ||||
|     boolean deleteByGenkey(@Param("genKey") String genKey); | ||||
| } | ||||
| @ -0,0 +1,26 @@ | ||||
| package com.glxp.api.admin.dao.thrsys; | ||||
| 
 | ||||
| import com.glxp.api.admin.entity.thrsys.ThrProductsImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| import org.apache.ibatis.annotations.Mapper; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
| 
 | ||||
| import java.util.List; | ||||
| 
 | ||||
| @Mapper | ||||
| public interface ThrProductsImportDetailDao { | ||||
| 
 | ||||
| 
 | ||||
|     List<ThrProductsImportDetailEntity> filterProductsDetailImport(FilterUdiIpLogRequest filterInCodeLogRequest); | ||||
| 
 | ||||
|     boolean insertProductsDetailImport(ThrProductsImportDetailEntity thrOrderImportDetailEntity); | ||||
| 
 | ||||
|     boolean updateProductsDetailImport(ThrProductsImportDetailEntity thrOrderImportDetailEntity); | ||||
| 
 | ||||
|     boolean insertProductsDetailImports(@Param("products") List<ThrProductsImportDetailEntity> thrOrderImportDetailEntities); | ||||
| 
 | ||||
|     boolean deleteById(@Param("id") String id); | ||||
| 
 | ||||
|     boolean deleteByGenkey(@Param("genKey") String genKey); | ||||
| 
 | ||||
| } | ||||
| @ -0,0 +1,22 @@ | ||||
| package com.glxp.api.admin.entity.thrsys; | ||||
| 
 | ||||
| import lombok.Data; | ||||
| 
 | ||||
| import java.util.Date; | ||||
| 
 | ||||
| @Data | ||||
| public class ThrCorpImportDetailEntity { | ||||
| 
 | ||||
|     private String id; | ||||
|     private String unitId; | ||||
|     private String name; | ||||
|     private String spell; | ||||
|     private String addr; | ||||
|     private String creditNo; | ||||
|     private String contact; | ||||
|     private String mobile; | ||||
|     private String thirdSysFk; | ||||
|     private Date updateTime; | ||||
|     private String genKeyFk; | ||||
| 
 | ||||
| } | ||||
| @ -0,0 +1,25 @@ | ||||
| package com.glxp.api.admin.entity.thrsys; | ||||
| 
 | ||||
| import lombok.Data; | ||||
| 
 | ||||
| import java.util.Date; | ||||
| 
 | ||||
| @Data | ||||
| public class ThrInvProductsImportDetailEntity { | ||||
|     private Integer id; | ||||
|     private String inventoryCode; | ||||
|     private String inventoryName; | ||||
|     private String spec; | ||||
|     private Integer count; | ||||
|     private String batchNo; | ||||
|     private String warehouseName; | ||||
|     private String warehouseCode; | ||||
|     private String registerCertNo; | ||||
|     private String manufacturingDate; | ||||
|     private String expirationDate; | ||||
|     private String spaceCode; | ||||
|     private String spaceName; | ||||
|     private String thirdSysFk; | ||||
|     private Date updateTime; | ||||
|     private String genKeyFk; | ||||
| } | ||||
| @ -0,0 +1,29 @@ | ||||
| package com.glxp.api.admin.entity.thrsys; | ||||
| 
 | ||||
| import lombok.Data; | ||||
| 
 | ||||
| import java.util.Date; | ||||
| 
 | ||||
| @Data | ||||
| public class ThrProductsImportDetailEntity { | ||||
|     private Integer id; | ||||
|     private String code; | ||||
|     private String name; | ||||
|     private String measname; | ||||
|     private String spec; | ||||
|     private String registerNo; | ||||
|     private String manufactory; | ||||
|     private String thirdSysFk; | ||||
|     private String cplb; | ||||
|     private String flbm; | ||||
|     private String qxlb; | ||||
|     private String ybbm; | ||||
|     private String sptm; | ||||
|     private String tyshxydm; | ||||
|     private String zczbhhzbapzbh; | ||||
|     private String ylqxzcrbarmc; | ||||
|     private String ylqxzcrbarywmc; | ||||
|     private String cpms; | ||||
|     private Date updateTime; | ||||
|     private String genKeyFk; | ||||
| } | ||||
| @ -0,0 +1,25 @@ | ||||
| package com.glxp.api.admin.service.thrsys; | ||||
| 
 | ||||
| import com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| import org.apache.ibatis.annotations.Param; | ||||
| import org.springframework.stereotype.Service; | ||||
| 
 | ||||
| import java.util.List; | ||||
| 
 | ||||
| @Service | ||||
| public interface ThrCorpImportDetailService { | ||||
| 
 | ||||
|     List<ThrCorpImportDetailEntity> filterCorpDetailImport(FilterUdiIpLogRequest filterInCodeLogRequest); | ||||
| 
 | ||||
|     boolean insertCorpDetailImport(ThrCorpImportDetailEntity thrCorpImportDetailEntity); | ||||
| 
 | ||||
|     boolean updateCorpDetailImport(ThrCorpImportDetailEntity thrCorpImportDetailEntity); | ||||
| 
 | ||||
|     boolean insertCorpDetailImports( List<ThrCorpImportDetailEntity> thrCorpImportDetailEntities); | ||||
| 
 | ||||
|     boolean deleteById( String id); | ||||
| 
 | ||||
|     boolean deleteByGenkey( String genKey); | ||||
| 
 | ||||
| } | ||||
| @ -0,0 +1,20 @@ | ||||
| package com.glxp.api.admin.service.thrsys; | ||||
| 
 | ||||
| import com.glxp.api.admin.entity.thrsys.ThrInvProductsImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| 
 | ||||
| import java.util.List; | ||||
| 
 | ||||
| public interface ThrInvProductsDetailService { | ||||
|     List<ThrInvProductsImportDetailEntity> filterInvProductsDetailImport(FilterUdiIpLogRequest filterInCodeLogRequest); | ||||
| 
 | ||||
|     boolean insertInvProductsDetailImport(ThrInvProductsImportDetailEntity thrInvProductsImportDetailEntity); | ||||
| 
 | ||||
|     boolean updateInvProductsDetailImport(ThrInvProductsImportDetailEntity thrInvProductsImportDetailEntity); | ||||
| 
 | ||||
|     boolean insertInvProductsDetailImports(List<ThrInvProductsImportDetailEntity> thrInvProductsImportDetailEntities); | ||||
| 
 | ||||
|     boolean deleteById(String id); | ||||
| 
 | ||||
|     boolean deleteByGenkey(String genKey); | ||||
| } | ||||
| @ -0,0 +1,21 @@ | ||||
| package com.glxp.api.admin.service.thrsys; | ||||
| 
 | ||||
| import com.glxp.api.admin.entity.thrsys.ThrProductsImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| 
 | ||||
| import java.util.List; | ||||
| public interface ThrProductsImportDetailService { | ||||
| 
 | ||||
|     List<ThrProductsImportDetailEntity> filterProductsDetailImport(FilterUdiIpLogRequest filterInCodeLogRequest); | ||||
| 
 | ||||
|     boolean insertProductsDetailImport(ThrProductsImportDetailEntity thrOrderImportDetailEntity); | ||||
| 
 | ||||
|     boolean updateProductsDetailImport(ThrProductsImportDetailEntity thrOrderImportDetailEntity); | ||||
| 
 | ||||
|     boolean insertProductsDetailImports(List<ThrProductsImportDetailEntity> thrOrderImportDetailEntities); | ||||
| 
 | ||||
|     boolean deleteById(String id); | ||||
| 
 | ||||
|     boolean deleteByGenkey(String genKey); | ||||
| 
 | ||||
| } | ||||
| @ -0,0 +1,57 @@ | ||||
| package com.glxp.api.admin.service.thrsys.impl; | ||||
| 
 | ||||
| import com.github.pagehelper.PageHelper; | ||||
| import com.glxp.api.admin.dao.thrsys.ThrCorpImportDetailDao; | ||||
| import com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| import com.glxp.api.admin.service.thrsys.ThrCorpImportDetailService; | ||||
| import org.springframework.stereotype.Service; | ||||
| 
 | ||||
| import javax.annotation.Resource; | ||||
| import java.util.Collections; | ||||
| import java.util.List; | ||||
| 
 | ||||
| @Service | ||||
| public class ThrCorpImportDetailServiceImpl implements ThrCorpImportDetailService { | ||||
| 
 | ||||
|     @Resource | ||||
|     ThrCorpImportDetailDao thrCorpImportDetailDao; | ||||
| 
 | ||||
|     @Override | ||||
|     public List<ThrCorpImportDetailEntity> filterCorpDetailImport(FilterUdiIpLogRequest filterUdiIpLogRequest) { | ||||
|         if (filterUdiIpLogRequest == null) { | ||||
|             return Collections.emptyList(); | ||||
|         } | ||||
|         if (filterUdiIpLogRequest.getPage() != null) { | ||||
|             int offset = (filterUdiIpLogRequest.getPage() - 1) * filterUdiIpLogRequest.getLimit(); | ||||
|             PageHelper.offsetPage(offset, filterUdiIpLogRequest.getLimit()); | ||||
|         } | ||||
|         List<ThrCorpImportDetailEntity> data = thrCorpImportDetailDao.filterCorpDetailImport(filterUdiIpLogRequest); | ||||
|         return data; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean insertCorpDetailImport(ThrCorpImportDetailEntity thrCorpImportDetailEntity) { | ||||
|         return thrCorpImportDetailDao.insertCorpDetailImport(thrCorpImportDetailEntity); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean updateCorpDetailImport(ThrCorpImportDetailEntity thrCorpImportDetailEntity) { | ||||
|         return thrCorpImportDetailDao.updateCorpDetailImport(thrCorpImportDetailEntity); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean insertCorpDetailImports(List<ThrCorpImportDetailEntity> thrCorpImportDetailEntities) { | ||||
|         return thrCorpImportDetailDao.insertCorpDetailImports(thrCorpImportDetailEntities); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean deleteById(String id) { | ||||
|         return thrCorpImportDetailDao.deleteById(id); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean deleteByGenkey(String genKey) { | ||||
|         return thrCorpImportDetailDao.deleteByGenkey(genKey); | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,58 @@ | ||||
| package com.glxp.api.admin.service.thrsys.impl; | ||||
| 
 | ||||
| import com.github.pagehelper.PageHelper; | ||||
| import com.glxp.api.admin.dao.thrsys.ThrInvProductsDetailDao; | ||||
| import com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity; | ||||
| import com.glxp.api.admin.entity.thrsys.ThrInvProductsImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| import com.glxp.api.admin.service.thrsys.ThrInvProductsDetailService; | ||||
| import org.springframework.stereotype.Service; | ||||
| 
 | ||||
| import javax.annotation.Resource; | ||||
| import java.util.Collections; | ||||
| import java.util.List; | ||||
| 
 | ||||
| @Service | ||||
| public class ThrInvProductsDetailServiceImpl implements ThrInvProductsDetailService { | ||||
| 
 | ||||
|     @Resource | ||||
|     ThrInvProductsDetailDao thrInvProductsDetailDao; | ||||
| 
 | ||||
|     @Override | ||||
|     public List<ThrInvProductsImportDetailEntity> filterInvProductsDetailImport(FilterUdiIpLogRequest filterUdiIpLogRequest) { | ||||
|         if (filterUdiIpLogRequest == null) { | ||||
|             return Collections.emptyList(); | ||||
|         } | ||||
|         if (filterUdiIpLogRequest.getPage() != null) { | ||||
|             int offset = (filterUdiIpLogRequest.getPage() - 1) * filterUdiIpLogRequest.getLimit(); | ||||
|             PageHelper.offsetPage(offset, filterUdiIpLogRequest.getLimit()); | ||||
|         } | ||||
|         List<ThrInvProductsImportDetailEntity> data = thrInvProductsDetailDao.filterInvProductsDetailImport(filterUdiIpLogRequest); | ||||
|         return data; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean insertInvProductsDetailImport(ThrInvProductsImportDetailEntity thrInvProductsImportDetailEntity) { | ||||
|         return thrInvProductsDetailDao.insertInvProductsDetailImport(thrInvProductsImportDetailEntity); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean updateInvProductsDetailImport(ThrInvProductsImportDetailEntity thrInvProductsImportDetailEntity) { | ||||
|         return thrInvProductsDetailDao.updateInvProductsDetailImport(thrInvProductsImportDetailEntity); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean insertInvProductsDetailImports(List<ThrInvProductsImportDetailEntity> thrInvProductsImportDetailEntities) { | ||||
|         return thrInvProductsDetailDao.insertInvProductsDetailImports(thrInvProductsImportDetailEntities); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean deleteById(String id) { | ||||
|         return thrInvProductsDetailDao.deleteById(id); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean deleteByGenkey(String genKey) { | ||||
|         return thrInvProductsDetailDao.deleteByGenkey(genKey); | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,57 @@ | ||||
| package com.glxp.api.admin.service.thrsys.impl; | ||||
| 
 | ||||
| import com.github.pagehelper.PageHelper; | ||||
| import com.glxp.api.admin.dao.thrsys.ThrProductsImportDetailDao; | ||||
| import com.glxp.api.admin.entity.thrsys.ThrProductsImportDetailEntity; | ||||
| import com.glxp.api.admin.req.basic.FilterUdiIpLogRequest; | ||||
| import com.glxp.api.admin.service.thrsys.ThrProductsImportDetailService; | ||||
| import org.springframework.stereotype.Service; | ||||
| 
 | ||||
| import javax.annotation.Resource; | ||||
| import java.util.Collections; | ||||
| import java.util.List; | ||||
| 
 | ||||
| @Service | ||||
| public class ThrProductsImportDetailServiceImpl implements ThrProductsImportDetailService { | ||||
| 
 | ||||
|     @Resource | ||||
|     ThrProductsImportDetailDao thrProductsImportDetailDao; | ||||
| 
 | ||||
|     @Override | ||||
|     public List<ThrProductsImportDetailEntity> filterProductsDetailImport(FilterUdiIpLogRequest filterUdiIpLogRequest) { | ||||
|         if (filterUdiIpLogRequest == null) { | ||||
|             return Collections.emptyList(); | ||||
|         } | ||||
|         if (filterUdiIpLogRequest.getPage() != null) { | ||||
|             int offset = (filterUdiIpLogRequest.getPage() - 1) * filterUdiIpLogRequest.getLimit(); | ||||
|             PageHelper.offsetPage(offset, filterUdiIpLogRequest.getLimit()); | ||||
|         } | ||||
|         List<ThrProductsImportDetailEntity> data = thrProductsImportDetailDao.filterProductsDetailImport(filterUdiIpLogRequest); | ||||
|         return data; | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean insertProductsDetailImport(ThrProductsImportDetailEntity thrOrderImportDetailEntity) { | ||||
|         return thrProductsImportDetailDao.insertProductsDetailImport(thrOrderImportDetailEntity); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean updateProductsDetailImport(ThrProductsImportDetailEntity thrOrderImportDetailEntity) { | ||||
|         return thrProductsImportDetailDao.updateProductsDetailImport(thrOrderImportDetailEntity); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean insertProductsDetailImports(List<ThrProductsImportDetailEntity> thrOrderImportDetailEntities) { | ||||
|         return thrProductsImportDetailDao.insertProductsDetailImports(thrOrderImportDetailEntities); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean deleteById(String id) { | ||||
|         return thrProductsImportDetailDao.deleteById(id); | ||||
|     } | ||||
| 
 | ||||
|     @Override | ||||
|     public boolean deleteByGenkey(String genKey) { | ||||
|         return thrProductsImportDetailDao.deleteByGenkey(genKey); | ||||
|     } | ||||
| } | ||||
| @ -0,0 +1,92 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" ?> | ||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||||
| 
 | ||||
| <mapper namespace="com.glxp.api.admin.dao.thrsys.ThrCorpImportDetailDao"> | ||||
| 
 | ||||
|     <select id="filterCorpDetailImport" parameterType="com.glxp.api.admin.req.basic.FilterUdiIpLogRequest" | ||||
|             resultType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> | ||||
|         SELECT * FROM thr_corp_import_detail | ||||
|         <where> | ||||
|             <if test="genKey != '' and genKey != null"> | ||||
|                 AND genKeyFk = #{genKey} | ||||
|             </if> | ||||
|             <if test="id != '' and id != null"> | ||||
|                 AND id = #{id} | ||||
|             </if> | ||||
|             <if test="status != '' and status != null"> | ||||
|                 AND status = #{status} | ||||
|             </if> | ||||
|             <if test="thirdSysFk != '' and thirdSysFk != null"> | ||||
|                 AND thirdSysFk = #{thirdSysFk} | ||||
|             </if> | ||||
|         </where> | ||||
| 
 | ||||
|     </select> | ||||
| 
 | ||||
| 
 | ||||
|     <insert id="insertCorpDetailImport" keyProperty="id" | ||||
|             parameterType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> | ||||
|         insert INTO thr_corp_import_detail | ||||
|         ( | ||||
|            unitId,name,spell,addr,creditNo, | ||||
|         contact,mobile,thirdSysFk,updateTime ,genKeyFk | ||||
|         ) | ||||
|         values | ||||
|             ( | ||||
|            #{unitId}, | ||||
|             #{name}, | ||||
|             #{spell}, | ||||
|             #{addr}, | ||||
|             #{creditNo}, | ||||
|             #{contact}, | ||||
|             #{mobile}, | ||||
|             #{thirdSysFk}, | ||||
|              #{updateTime}, | ||||
|               #{genKeyFk} | ||||
|                  ) | ||||
|     </insert> | ||||
| 
 | ||||
|     <insert id="insertCorpDetailImports" keyProperty="id" parameterType="java.util.List"> | ||||
|         insert INTO thr_corp_import_detail | ||||
|         ( | ||||
|         unitId,name,spell,addr,creditNo, | ||||
|         contact,mobile,thirdSysFk ,updateTime ,genKeyFk ) | ||||
|         values | ||||
|         <foreach collection="corps" item="item" index="index" | ||||
|                  separator=","> | ||||
|             ( | ||||
|             #{item.unitId}, | ||||
|             #{item.name}, | ||||
|             #{item.spell}, | ||||
|             #{item.addr}, | ||||
|             #{item.creditNo}, | ||||
|             #{item.contact}, | ||||
|             #{item.mobile}, | ||||
|             #{item.thirdSysFk} ,#{item.updateTime},#{item.genKeyFk} ) | ||||
|         </foreach> | ||||
|     </insert> | ||||
|     <delete id="deleteById" parameterType="Map"> | ||||
|         DELETE FROM thr_corp_import_detail  WHERE id =  #{id} | ||||
|     </delete> | ||||
|     <delete id="deleteByGenkey" parameterType="Map"> | ||||
|         DELETE FROM thr_corp_import_detail  WHERE genKeyFk =  #{genKey} | ||||
|     </delete> | ||||
| 
 | ||||
|     <update id="updateCorpDetailImport" parameterType="com.glxp.api.admin.entity.thrsys.ThrCorpImportDetailEntity"> | ||||
|         UPDATE thr_corp_import_detail | ||||
|         <trim prefix="set" suffixOverrides=","> | ||||
|             <if test="unitId != null">unitId=#{unitId},</if> | ||||
|             <if test="name != null">name=#{name},</if> | ||||
|             <if test="spell != null">spell=#{spell},</if> | ||||
|             <if test="addr != null">addr=#{addr},</if> | ||||
|             <if test="creditNo != null">creditNo=#{creditNo},</if> | ||||
|             <if test="contact != null">contact=#{contact},</if> | ||||
|             <if test="mobile != null">mobile=#{mobile},</if> | ||||
|             <if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if> | ||||
|             <if test="updateTime != null">updateTime=#{updateTime},</if> | ||||
|             <if test="genKeyFk != null">genKeyFk=#{genKeyFk},</if> | ||||
|         </trim> | ||||
|         WHERE id = #{id} | ||||
|     </update> | ||||
| 
 | ||||
| </mapper> | ||||
| @ -0,0 +1,92 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" ?> | ||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||||
| 
 | ||||
| <mapper namespace="com.glxp.api.admin.dao.thrsys.ThrInvProductsDetailDao"> | ||||
| 
 | ||||
|     <select id="filterInvProductsDetailImport" parameterType="com.glxp.api.admin.req.basic.FilterUdiIpLogRequest" | ||||
|             resultType="com.glxp.api.admin.entity.thrsys.ThrInvProductsImportDetailEntity"> | ||||
|         SELECT * FROM thr_inv_products_import_detail | ||||
|         <where> | ||||
|             <if test="genKey != '' and genKey != null"> | ||||
|                 AND genKeyFk = #{genKey} | ||||
|             </if> | ||||
|             <if test="id != '' and id != null"> | ||||
|                 AND id = #{id} | ||||
|             </if> | ||||
|             <if test="status != '' and status != null"> | ||||
|                 AND status = #{status} | ||||
|             </if> | ||||
|             <if test="thirdSysFk != '' and thirdSysFk != null"> | ||||
|                 AND thirdSysFk = #{thirdSysFk} | ||||
|             </if> | ||||
|         </where> | ||||
| 
 | ||||
|     </select> | ||||
| 
 | ||||
| 
 | ||||
|     <insert id="insertInvProductsDetailImport" keyProperty="id" | ||||
|             parameterType="com.glxp.api.admin.entity.thrsys.ThrInvProductsImportDetailEntity"> | ||||
|         insert INTO thr_inv_products_import_detail | ||||
|         ( | ||||
|                inventoryCode,inventoryName,count,spec, | ||||
|         warehouseName,warehouseCode,registerCertNo,manufacturingDate, | ||||
|         expirationDate,thirdSysFk,batchNo,spaceCode,spaceName,updateTime ,genKeyFk | ||||
|         ) | ||||
|         values | ||||
|             ( | ||||
|            #{inventoryCode},  #{inventoryName},  #{count},  #{spec}, | ||||
|             #{warehouseName},  #{warehouseCode},  #{registerCertNo},  #{manufacturingDate}, | ||||
|             #{expirationDate}, | ||||
|             #{thirdSysFk},#{batchNo},#{spaceCode},#{spaceName}, | ||||
|              #{updateTime}, | ||||
|               #{genKeyFk} | ||||
|                  ) | ||||
|     </insert> | ||||
| 
 | ||||
|     <insert id="insertInvProductsDetailImports" keyProperty="id" parameterType="java.util.List"> | ||||
|         insert INTO thr_inv_products_import_detail | ||||
|         ( | ||||
|         inventoryCode,inventoryName,count,spec, | ||||
|         warehouseName,warehouseCode,registerCertNo,manufacturingDate, | ||||
|         expirationDate,thirdSysFk,batchNo,spaceCode,spaceName,updateTime ,genKeyFk ) | ||||
|         values | ||||
|         <foreach collection="invProducts" item="item" index="index" | ||||
|                  separator=","> | ||||
|             ( | ||||
|             #{item.inventoryCode}, #{item.inventoryName}, #{item.count}, #{item.spec}, | ||||
|             #{item.warehouseName}, #{item.warehouseCode}, #{item.registerCertNo}, | ||||
|             #{item.manufacturingDate}, #{item.expirationDate}, | ||||
|             #{item.thirdSysFk},#{item.batchNo},#{item.spaceCode},#{item.spaceName} | ||||
|             ,#{item.updateTime},#{item.genKeyFk} ) | ||||
|         </foreach> | ||||
|     </insert> | ||||
|     <delete id="deleteById" parameterType="Map"> | ||||
|         DELETE FROM thr_inv_products_import_detail  WHERE id =  #{id} | ||||
|     </delete> | ||||
|     <delete id="deleteByGenkey" parameterType="Map"> | ||||
|         DELETE FROM thr_inv_products_import_detail  WHERE genKeyFk =  #{genKey} | ||||
|     </delete> | ||||
| 
 | ||||
|     <update id="updateInvProductsDetailImport" parameterType="com.glxp.api.admin.entity.thrsys.ThrInvProductsImportDetailEntity"> | ||||
|         UPDATE thr_inv_products_import_detail | ||||
|         <trim prefix="set" suffixOverrides=","> | ||||
|             <if test="inventoryCode != null">inventoryCode=#{inventoryCode},</if> | ||||
|             <if test="inventoryName != null">inventoryName=#{inventoryName},</if> | ||||
|             <if test="spec != null">spec=#{spec},</if> | ||||
|             <if test="count != null">count=#{count},</if> | ||||
|             <if test="batchNo != null">batchNo=#{batchNo},</if> | ||||
|             <if test="warehouseName != null">warehouseName=#{warehouseName},</if> | ||||
|             <if test="warehouseCode != null">warehouseCode=#{warehouseCode},</if> | ||||
|             <if test="registerCertNo != null">registerCertNo=#{registerCertNo},</if> | ||||
|             <if test="manufacturingDate != null">manufacturingDate=#{manufacturingDate},</if> | ||||
|             <if test="expirationDate != null">expirationDate=#{expirationDate},</if> | ||||
|             <if test="spaceCode != null">spaceCode=#{spaceCode},</if> | ||||
|             <if test="spaceName != null">spaceName=#{spaceName},</if> | ||||
|             <if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if> | ||||
|             <if test="updateTime != null">updateTime=#{updateTime},</if> | ||||
|             <if test="genKeyFk != null">genKeyFk=#{genKeyFk},</if> | ||||
|         </trim> | ||||
|         WHERE id = #{id} | ||||
|     </update> | ||||
| 
 | ||||
| </mapper> | ||||
| @ -0,0 +1,102 @@ | ||||
| <?xml version="1.0" encoding="UTF-8" ?> | ||||
| <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||||
| 
 | ||||
| <mapper namespace="com.glxp.api.admin.dao.thrsys.ThrProductsImportDetailDao"> | ||||
| 
 | ||||
|     <select id="filterProductsDetailImport" parameterType="com.glxp.api.admin.req.basic.FilterUdiIpLogRequest" | ||||
|             resultType="com.glxp.api.admin.entity.thrsys.ThrProductsImportDetailEntity"> | ||||
|         SELECT * FROM thr_products_import_detail | ||||
|         <where> | ||||
|             <if test="genKey != '' and genKey != null"> | ||||
|                 AND genKeyFk = #{genKey} | ||||
|             </if> | ||||
|             <if test="id != '' and id != null"> | ||||
|                 AND id = #{id} | ||||
|             </if> | ||||
|             <if test="status != '' and status != null"> | ||||
|                 AND status = #{status} | ||||
|             </if> | ||||
|             <if test="thirdSysFk != '' and thirdSysFk != null"> | ||||
|                 AND thirdSysFk = #{thirdSysFk} | ||||
|             </if> | ||||
|         </where> | ||||
| 
 | ||||
|     </select> | ||||
| 
 | ||||
| 
 | ||||
|     <insert id="insertProductsDetailImport" keyProperty="id" | ||||
|             parameterType="com.glxp.api.admin.entity.thrsys.ThrProductsImportDetailEntity"> | ||||
|         insert INTO thr_products_import_detail | ||||
|         ( | ||||
|         code,name,measname,spec,registerNo,manufactory, | ||||
|         cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms, | ||||
|         thirdSysFk,updateTime ,genKeyFk    ) | ||||
|         values | ||||
|             ( | ||||
|            #{code}, | ||||
|             #{name}, | ||||
|             #{measname}, | ||||
|             #{spec}, | ||||
|             #{registerNo}, | ||||
|             #{manufactory}, | ||||
|             #{cplb}, #{flbm}, #{qxlb}, #{ybbm},#{sptm}, | ||||
|             #{tyshxydm}, #{zczbhhzbapzbh}, #{ylqxzcrbarmc}, #{ylqxzcrbarywmc},#{cpms} | ||||
|             #{thirdSysFk},#{updateTime},#{genKeyFk} | ||||
|                  ) | ||||
|     </insert> | ||||
| 
 | ||||
|     <insert id="insertProductsDetailImports" keyProperty="id" parameterType="java.util.List"> | ||||
|         insert INTO thr_products_import_detail | ||||
|         ( | ||||
|         code,name,measname,spec,registerNo,manufactory, | ||||
|         cplb,flbm,qxlb,ybbm,sptm,tyshxydm,zczbhhzbapzbh,ylqxzcrbarmc,ylqxzcrbarywmc,cpms, | ||||
|         thirdSysFk ,updateTime ,genKeyFk ) | ||||
|         values | ||||
|         <foreach collection="products" item="item" index="index" | ||||
|                  separator=","> | ||||
|             ( | ||||
|             #{item.code}, | ||||
|             #{item.name}, | ||||
|             #{item.measname}, | ||||
|             #{item.spec}, | ||||
|             #{item.registerNo}, | ||||
|             #{item.manufactory}, | ||||
|             #{item.cplb}, #{item.flbm}, #{item.qxlb}, #{item.ybbm},#{item.sptm}, | ||||
|             #{item.tyshxydm}, #{item.zczbhhzbapzbh}, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc},#{item.cpms}, | ||||
|             #{item.thirdSysFk}  ,#{item.updateTime},#{item.genKeyFk}          ) | ||||
|         </foreach> | ||||
|     </insert> | ||||
|     <delete id="deleteById" parameterType="Map"> | ||||
|         DELETE FROM thr_products_import_detail  WHERE id =  #{id} | ||||
|     </delete> | ||||
|     <delete id="deleteByGenkey" parameterType="Map"> | ||||
|         DELETE FROM thr_products_import_detail  WHERE genKeyFk =  #{genKey} | ||||
|     </delete> | ||||
| 
 | ||||
|     <update id="updateProductsDetailImport" parameterType="com.glxp.api.admin.entity.thrsys.ThrProductsImportDetailEntity"> | ||||
|         UPDATE thr_products_import_detail | ||||
|         <trim prefix="set" suffixOverrides=","> | ||||
|             <if test="code != null">code=#{code},</if> | ||||
|             <if test="name != null">name=#{name},</if> | ||||
|             <if test="measname != null">measname=#{measname},</if> | ||||
|             <if test="spec != null">spec=#{spec},</if> | ||||
|             <if test="registerNo != null">registerNo=#{registerNo},</if> | ||||
|             <if test="cplb != null">cplb=#{cplb},</if> | ||||
|             <if test="flbm != null">flbm=#{flbm},</if> | ||||
|             <if test="qxlb != null">qxlb=#{qxlb},</if> | ||||
|             <if test="ybbm != null">ybbm=#{ybbm},</if> | ||||
|             <if test="sptm != null">sptm=#{sptm},</if> | ||||
|             <if test="tyshxydm != null">tyshxydm=#{tyshxydm},</if> | ||||
|             <if test="zczbhhzbapzbh != null">zczbhhzbapzbh=#{zczbhhzbapzbh},</if> | ||||
|             <if test="ylqxzcrbarmc != null">ylqxzcrbarmc=#{ylqxzcrbarmc},</if> | ||||
|             <if test="ylqxzcrbarywmc != null">ylqxzcrbarywmc=#{ylqxzcrbarywmc},</if> | ||||
|             <if test="manufactory != null">manufactory=#{manufactory},</if> | ||||
|             <if test="cpms != null">cpms=#{cpms},</if> | ||||
|             <if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if> | ||||
|             <if test="updateTime != null">updateTime=#{updateTime},</if> | ||||
|             <if test="genKeyFk != null">genKeyFk=#{genKeyFk},</if> | ||||
|         </trim> | ||||
|         WHERE id = #{id} | ||||
|     </update> | ||||
| 
 | ||||
| </mapper> | ||||
					Loading…
					
					
				
		Reference in New Issue