diff --git a/src/main/java/com/glxp/api/dao/basic/BasicCorpImportDetailDao.java b/src/main/java/com/glxp/api/dao/basic/BasicCorpImportDetailDao.java deleted file mode 100644 index 1a3bbf40..00000000 --- a/src/main/java/com/glxp/api/dao/basic/BasicCorpImportDetailDao.java +++ /dev/null @@ -1,26 +0,0 @@ -package com.glxp.api.dao.basic; - - -import com.glxp.api.entity.basic.BasicCorpsImportDetailEntity; -import com.glxp.api.req.basic.FilterCorpImportLogRequest; -import org.apache.ibatis.annotations.Mapper; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -@Mapper -public interface BasicCorpImportDetailDao { - - List filterCorpImport(FilterCorpImportLogRequest filterCorpImportLogRequest); - - boolean insertCorpImport(BasicCorpsImportDetailEntity corpImportDetailEntity); - - boolean updateCorpImport(BasicCorpsImportDetailEntity corpImportDetailEntity); - - boolean insertCorpImports(@Param("corps") List corpImportDetailEntities); - - boolean deleteById(@Param("id") String id); - - boolean deleteByGenkey(@Param("genKey") String genKey); - -} diff --git a/src/main/java/com/glxp/api/service/basic/BasicCorpImportDetailService.java b/src/main/java/com/glxp/api/service/basic/BasicCorpImportDetailService.java deleted file mode 100644 index 1f34404c..00000000 --- a/src/main/java/com/glxp/api/service/basic/BasicCorpImportDetailService.java +++ /dev/null @@ -1,23 +0,0 @@ -package com.glxp.api.service.basic; - - -import com.glxp.api.entity.basic.BasicCorpsImportDetailEntity; -import com.glxp.api.req.basic.FilterCorpImportLogRequest; - -import java.util.List; - -public interface BasicCorpImportDetailService { - - List filterCorpImport(FilterCorpImportLogRequest filterCorpImportLogRequest); - - boolean insertCorpImport(BasicCorpsImportDetailEntity corpImportDetailEntity); - - boolean updateCorpImport(BasicCorpsImportDetailEntity corpImportDetailEntity); - - boolean insertCorpImports(List corpImportDetailEntities); - - boolean deleteById(String id); - - boolean deleteByGenkey(String genKey); - -} diff --git a/src/main/java/com/glxp/api/service/basic/impl/BasicCorpImportDetailServiceImpl.java b/src/main/java/com/glxp/api/service/basic/impl/BasicCorpImportDetailServiceImpl.java deleted file mode 100644 index 13b6fb39..00000000 --- a/src/main/java/com/glxp/api/service/basic/impl/BasicCorpImportDetailServiceImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -package com.glxp.api.service.basic.impl; - -import com.github.pagehelper.PageHelper; -import com.glxp.api.dao.basic.BasicCorpImportDetailDao; -import com.glxp.api.entity.basic.BasicCorpsImportDetailEntity; -import com.glxp.api.req.basic.FilterCorpImportLogRequest; -import com.glxp.api.service.basic.BasicCorpImportDetailService; -import org.springframework.stereotype.Service; - -import javax.annotation.Resource; -import java.util.Collections; -import java.util.List; - -@Service -public class BasicCorpImportDetailServiceImpl implements BasicCorpImportDetailService { - @Resource - BasicCorpImportDetailDao basicCorpImportDetailDao; - - @Override - public List filterCorpImport(FilterCorpImportLogRequest filterCorpImportLogRequest) { - if (filterCorpImportLogRequest == null) { - return Collections.emptyList(); - } - if (filterCorpImportLogRequest.getPage() != null) { - int offset = (filterCorpImportLogRequest.getPage() - 1) * filterCorpImportLogRequest.getLimit(); - PageHelper.offsetPage(offset, filterCorpImportLogRequest.getLimit()); - } - List data = basicCorpImportDetailDao.filterCorpImport(filterCorpImportLogRequest); - return data; - } - - @Override - public boolean insertCorpImport(BasicCorpsImportDetailEntity basicCorpsImportDetailEntity) { - return basicCorpImportDetailDao.insertCorpImport(basicCorpsImportDetailEntity); - } - - @Override - public boolean updateCorpImport(BasicCorpsImportDetailEntity basicCorpsImportDetailEntity) { - return basicCorpImportDetailDao.updateCorpImport(basicCorpsImportDetailEntity); - } - - @Override - public boolean insertCorpImports(List basicCorpsImportDetailEntity) { - return basicCorpImportDetailDao.insertCorpImports(basicCorpsImportDetailEntity); - } - - @Override - public boolean deleteById(String id) { - return basicCorpImportDetailDao.deleteById(id); - } - - @Override - public boolean deleteByGenkey(String genKey) { - return basicCorpImportDetailDao.deleteByGenkey(genKey); - } -} diff --git a/src/main/resources/mybatis/mapper/basic/BasicCorpImportDetailDao.xml b/src/main/resources/mybatis/mapper/basic/BasicCorpImportDetailDao.xml deleted file mode 100644 index 6663b414..00000000 --- a/src/main/resources/mybatis/mapper/basic/BasicCorpImportDetailDao.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - - - - - - - insert INTO basic_corps_import_detail - ( - thirdId,erpId,name,spell, - addr,status,type,creditNo,contact,mobile,thirdId1,thirdId2,thirdId3,thirdId4, - thirdName,thirdName1,thirdName2,thirdName3,thirdName4, - importStatus,updateTime,remark,genKeyFk) - values - ( - #{thirdId}, - #{erpId}, - #{name}, - #{spell}, - #{addr}, - #{status}, - #{type}, - #{creditNo}, - #{contact}, - #{mobile},#{thirdId1},#{thirdId2},#{thirdId3},#{thirdId4}, - #{thirdName},#{thirdName1},#{thirdName2},#{thirdName3},#{thirdName4}, - #{importStatus}, - #{updateTime},#{remark}, #{genKeyFk} - ) - - - - insert INTO basic_corps_import_detail - ( - thirdId,erpId,name,spell, - addr,status,type,creditNo,contact,mobile,thirdId1,thirdId2,thirdId3,thirdId4, - thirdName,thirdName1,thirdName2,thirdName3,thirdName4, - importStatus,updateTime,remark,genKeyFk) - values - - ( - #{item.thirdId}, - #{item.erpId}, - #{item.name}, - #{item.spell}, - #{item.addr}, - #{item.status}, - #{item.type}, - #{item.creditNo}, - #{item.contact}, - #{item.mobile},#{item.thirdId1},#{item.thirdId2},#{item.thirdId3},#{item.thirdId4}, - #{item.thirdName},#{item.thirdName1},#{item.thirdName2},#{item.thirdName3},#{item.thirdName4}, - #{item.importStatus}, - #{item.updateTime},#{item.remark}, #{item.genKeyFk} - ) - - - - DELETE FROM basic_corps_import_detail WHERE id = #{id} - - - DELETE FROM basic_corps_import_detail WHERE genKeyFk = #{genKey} - - - - UPDATE basic_corps_import_detail - - thirdId=#{thirdId}, - erpId=#{erpId}, - name=#{name}, - spell=#{spell}, - addr=#{addr}, - status=#{status}, - type=#{type}, - creditNo=#{creditNo}, - contact=#{contact}, - mobile=#{mobile}, - thirdId1=#{thirdId1}, - thirdId2=#{thirdId2}, - thirdId3=#{thirdId3}, - thirdId4=#{thirdId4}, - thirdName=#{thirdName}, - thirdName1=#{thirdName1}, - thirdName2=#{thirdName2}, - thirdName3=#{thirdName3}, - thirdName4=#{thirdName4}, - importStatus=#{importStatus}, - updateTime=#{updateTime}, - remark=#{remark}, - - WHERE id = #{id} - - - \ No newline at end of file