3/7 最后一次优化1.5

dev_2.5_ocean
wangwei 4 months ago
parent 591cbfcb18
commit 1717f746ea

@ -21,10 +21,6 @@ public interface InvWarehouseDao extends BaseMapperPlus<InvWarehouseDao, InvWare
InvWarehouseEntity selectMaxCode(FilterInvSubWarehouseRequest filterInvSubWarehouseRequest);
void importInvSubWarehouse(@Param("invWarehouseEntities") List<InvWarehouseEntity> invSubWarehouseEntities);
boolean deleteByParentCode(@Param("code") String code);
InvWarehouseEntity getByWareId(@Param("id") String id);
List<InvWarehouseEntity> getByWarePcode(@Param("parentCode") String parentCode);
@ -95,6 +91,4 @@ public interface InvWarehouseDao extends BaseMapperPlus<InvWarehouseDao, InvWare
List<InvWarehouseEntity> selectInvById(@Param("InvList") List<String> InvList);
List<InvWarehouseEntity> selectLowWarehouseAll(@Param("pcode") String pCode);
}

@ -17,11 +17,9 @@ public interface SysMenuDao {
int deleteById(Long id);
List<SysMenu> selectMenuList(FilterMenuRequest filterMenuRequest);
/**
*
*

@ -14,7 +14,6 @@ public interface BasicCorpDao extends BaseMapperPlus<BasicCorpDao, BasicCorpEnti
List<BasicCorpEntity> filterList(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest);
List<BasicCorpEntity> filterList2(BasicUnitMaintainFilterRequest basicUnitMaintainFilterRequest);
boolean insertThrUnitMaintainignore(BasicCorpEntity thrUnitMaintainResponse);

@ -24,8 +24,6 @@ public interface DeviceInfoMapper extends BaseMapperPlus<DeviceInfoMapper,Device
List<DeviceInfoVo> detail(@Param("param") DeviceInfoDetailByDeptCodeQuery query);
List<DeviceInfoVo> listVoByProductIdAndStatus(@Param("productId")Long productId, @Param("status")DeviceStatusEnum status);
List<DeviceInfoVo> listVoByCodes(@Param("list") List<String> deviceCodes,@Param("deptCode") String deptCode,@Param("status") List<DeviceStatusEnum> status);
}

@ -20,7 +20,6 @@ public interface IoOrderDao extends BaseMapperPlus<IoOrderDao, IoOrderEntity, Io
*/
List<IoOrderResponse> filterList(FilterOrderRequest filterOrderRequest);
List<IoOrderResponse> getfilterList(FilterOrderRequest filterOrderRequest);
List<IoOrderResponse> getfilterOrderList(FilterOrderRequest filterOrderRequest);
@ -78,5 +77,4 @@ public interface IoOrderDao extends BaseMapperPlus<IoOrderDao, IoOrderEntity, Io
List<String> selectOrderfirstAndLastIdList(@Param("firstData") String firstData, @Param("lastData") String lastData, @Param("invCode") String invCode);
String selectAliYljgSearchbillByAliBillNo(@Param("aliOrderBillNo") String aliOrderBillNo);
}

@ -22,9 +22,6 @@ public interface IoOrderDetailBizDao extends BaseMapperPlus<IoOrderDetailBizDao,
*/
List<IoOrderDetailBizResponse> filterList(FilterOrderDetailBizRequest orderDetailBizRequest);
List<IoOrderDetailCodeResponse> getfilterList(FilterOrderDetailCodeRequest orderDetailBizRequest);
List<IoOrderDetailResultResponse> getfilterOrderList(FilterOrderDetailCodeRequest orderDetailBizRequest);
List<IoOrderInvoiceResponse> filterListInv(FilterOrderDetailBizRequest orderDetailBizRequest);

@ -31,15 +31,6 @@ public interface InvPreInProductDetailDao extends BaseMapperPlus<InvPreInProduct
List<InvPreinProductResponse> findGroupBySpace(FilterInvPreinProductRequest filterInvPreinProductRequest);
/**
*
*
* @param detailRequest
* @return
*/
boolean deleteInvPreProductDetail(FilterInvProductDetailRequest detailRequest);
List<IoOrderResponse> getInvPlaceOrderList(FilterInvPlaceRequest filterInvPlaceRequest);
Integer getInventoryQuantity(@Param("code") String code, @Param("invCode") String invCode);
@ -51,7 +42,6 @@ public interface InvPreInProductDetailDao extends BaseMapperPlus<InvPreInProduct
List<InvPreInProductDetailEntity> findBySpaceList(@Param("spaceList") List<String> spaceList);
InvProductNewVo selectLastInBatch(@Param("relId") String relId, @Param("batchNo") String batchNo, @Param("mainAction") String mainAction);
InvProductNewVo selectFirstInBatch(@Param("relId") String relId, @Param("batchNo") String batchNo, @Param("mainAction") String mainAction);

@ -22,16 +22,6 @@ public interface InvPreProductDao extends BaseMapperPlus<InvPreProductDao, InvPr
List<InvPreProductResponse> filterListStock(FilterInvPreProductRequest invPreProductRequest);
/**
*
*
* @param invPreProductRequest
* @return
*/
List<InvPreProductEntity> filterPreProductList(FilterInvPreProductRequest invPreProductRequest);
List<InvPreProductResponse> findGroupBySpace(FilterInvPreProductRequest invPreProductRequest);

@ -24,13 +24,6 @@ public interface InvPreinProductDao extends BaseMapperPlus<InvPreinProductDao, I
List<InvPreinProductResponse> filterListStock(FilterInvPreinProductRequest invPreProductRequest);
/**
*
*
* @param invPreProductRequest
* @return
*/
List<InvPreinProductEntity> filterPreProductList(FilterInvPreinProductRequest invPreProductRequest);
List<InvPreinProductResponse> findGroupBySpace(FilterInvPreinProductRequest invPreProductRequest);

@ -22,8 +22,6 @@ public interface StockCompareDetailMapper extends BaseMapperPlus<StockCompareDet
Page<InvProductDetailSelectVo> invProductDetailSelectPage(Page pageObj, @Param("param") InvProductDetailSelectQuery query);
List<StockCompareDetailResponse> filterCompareDetail(InvProductDetailSelectRequest invProductDetailSelectRequest);
}

@ -11,7 +11,6 @@ import java.util.List;
@Mapper
public interface CustomerContacDao {
List<CustomerContactEntity> filterCustomerContact(CustomerContactFilterRequest userResisterFilterRequest);
boolean insertCustomerContact(CustomerContactEntity customerContactEntity);
@ -21,6 +20,5 @@ public interface CustomerContacDao {
CustomerContactEntity selectById(Long customerId);
boolean deleteContact(DeleteRequest deleteRequest);
}

@ -5,5 +5,4 @@ import com.glxp.api.entity.purchase.PurContractDetailEntity;
public interface PurContractDetailMapper extends BaseMapper<PurContractDetailEntity> {
// int insert(PurContractDetailEntity purContractDetailEntity);
}

@ -17,8 +17,6 @@ public interface SupCertDao extends BaseMapperPlus<SupCertDao, SupCertEntity, Su
List<SupCertEntity> filterCompanyCert(FilterSupCertRequest filterSupCertRequest);
SupCertEntity findCompanyCertByName(String name);
List<SupCertEntity> getCompanyCert(FilterSupCertRequest filterSupCertRequest);
boolean updateCompanyCert(SupCertEntity supCertEntity);
@ -35,7 +33,6 @@ public interface SupCertDao extends BaseMapperPlus<SupCertDao, SupCertEntity, Su
@Param("oldProductIdFk") String oldProductIdFk, @Param("newProductIdFk") String newProductIdFk);
boolean deleteCert(FilterSupCertRequest filterSupCertRequest);
List<SupCertEntity> selectSupCertList(purPlanPrintRequest purPlanPrintRequest);

@ -13,11 +13,6 @@ public interface SupCompanyDao extends BaseMapperPlus<SupCompanyDao, SupCompanyE
SupCompanyEntity findCompany(String CustomerId);
SupCompanyEntity findCompanyByName(String companyName);
List<SupCompanyEntity> getSubCompany(FilterSupCompanyRequest companyRequest);
List<SupCompanyEntity> getSubCompany2(FilterSupCompanyRequest companyRequest);
List<SupCompanyEntity> filterCompany(FilterSupCompanyRequest companyRequest);

@ -14,7 +14,6 @@ public interface SupManufacturerDao extends BaseMapperPlus<SupManufacturerDao, S
SupManufacturerEntity findCompany(Long id);
SupManufacturerEntity findCompanyByName(String companyName);
List<SupManufacturerEntity> getCompany(FilterSupManufacturerRequest filterSupManufacturerRequest);

@ -15,17 +15,14 @@ public interface SupProductDao extends BaseMapperPlus<SupProductDao,SupProductEn
SupProductEntity findRegistration(Long id);
SupProductEntity findRegistrationByName(String recordProductName);
List<SupProductResponse> getRegistration(FilterPoductRequest filterPoductRequest);
boolean modifyRegistration(SupProductEntity supProductEntity);
List<SupProductEntity> filterProducts(FilterPoductRequest filterPoductRequest);
boolean deleteById(@Param("id") String id);
int findProduct(SupProductEntity supProductEntity);
boolean deleteByEnterpriseId(@Param("enterpriseId") String enterpriseId);
SupProductEntity findByManufactury(@Param("cpmctymc") String cpmctymc, @Param("manufactory") String manufactory, @Param("customerId") String customerId);
}

@ -15,9 +15,6 @@ public interface SystemParamConfigDao extends BaseMapperPlus<SystemParamConfigD
List<SystemParamConfigEntity> queryPage(FilterParamConfigRequest filterParamConfigRequest);
SystemParamConfigEntity findSystemParamConfig(FilterParamConfigRequest filterParamConfigRequest);
SystemParamConfigEntity selectByParamName(FilterParamConfigRequest filterParamConfigRequest);
SystemParamConfigEntity selectByParamKey(FilterParamConfigRequest filterParamConfigRequest);

@ -17,5 +17,4 @@ public interface BasicExportTimeDao extends BaseMapperPlus<BasicExportTimeDao,Ba
boolean deleteById(String id);
boolean updateExportStatus(BasicExportStatusTimeEntity basicExportStatusTimeEntity);
}

@ -17,9 +17,6 @@ public interface SystemPDFTemplateDao extends BaseMapperPlus<SystemPDFTemplateDa
List<SystemPDFTemplateEntity> listPDFTemplates();
SystemPDFTemplateEntity findSystemPDFTemplate(FilterPdfTemplateRequest filterPdfTemplateRequest);
boolean updateById(SysPdfTemplateSaveRequest sysPdfTemplateSaveRequest);
boolean insertEntity(SystemPDFTemplateEntity systemPDFTemplateEntity);

@ -17,29 +17,6 @@ public interface SystemPDFTemplateRelevanceDao {
List<SystemPDFTemplateRelevanceResponse> filterList(FilterPdfTemplateRelevanceRequest systemPDFModuleRequest);
/**
* customerId
*
* @param customerId customerId
* @return
*/
List<SystemPDFTemplateRelevanceEntity> listByCustomerId(Long customerId);
/**
* customerId
*
* @param customerIds customerIds
* @return
*/
List<SystemPDFTemplateRelevanceEntity> listByCustomerIdIn(List<Long> customerIds);
/**
* template_id customer_id
*
* @param templateId templateId
* @return
*/
List<SystemPDFTemplateRelevanceEntity> listByTemplateId(int templateId);
/**
*
@ -64,7 +41,5 @@ public interface SystemPDFTemplateRelevanceDao {
boolean udpateRl(SystemPDFTemplateRelevanceEntity systemPDFTemplateRelevanceEntity);
SystemPDFTemplateRelevanceEntity selectModuleldAndAction(@Param("moduleId") Integer moduleId,@Param("localAction") String localAction);
}

@ -39,11 +39,4 @@ public interface ThrBusTypeOriginDao extends BaseMapperPlus<ThrBusTypeOriginDao,
*/
boolean insertBusOriginType(ThrBusTypeOriginEntity thrBusTypeOriginEntity);
/**
*
*
* @param originAction
* @return
*/
String selectNameByAction(@Param("originAction") String originAction);
}

@ -12,9 +12,6 @@ import java.util.List;
public interface ThrCorpImportDetailDao {
List<ThrCorpImportDetailEntity> filterCorpDetailImport(FilterThrCorpImportLogRequest filterThrCorpImportLogRequest);
boolean insertCorpDetailImport(ThrCorpImportDetailEntity thrCorpImportDetailEntity);
boolean updateCorpDetailImport(ThrCorpImportDetailEntity thrCorpImportDetailEntity);
boolean insertCorpDetailImports(@Param("corps") List<ThrCorpImportDetailEntity> thrCorpImportDetailEntities);

@ -14,11 +14,8 @@ public interface ThrDeptDao extends BaseMapperPlus<ThrDeptDao,ThrDeptEntity,ThrD
List<ThrDeptEntity> filterThrInvWarehouse(FilterThrDeptRequest filterThrDeptRequest);
List<ThrDeptEntity> filterThrGroupInvWarehouse(FilterThrDeptRequest filterThrDeptRequest);
boolean insertThrDept(ThrDeptEntity thrDeptEntity);
boolean insertThrDeptList(@Param("thrDeptEntities") List<ThrDeptEntity> thrDeptEntities);
boolean updateThrInvWarehouse(ThrDeptEntity thrDeptEntity);

@ -15,11 +15,8 @@ public interface ThrInvProductsDao {
ThrInvProductsEntity selectById(@Param("id") String id);
boolean insertThrInvProduct(ThrInvProductsEntity thrInvProductsEntity);
boolean insertThrInvProducts(@Param("thrInvProductsEntities") List<ThrInvProductsEntity> thrInvProductsEntities);
boolean updateThrInvProducts(ThrInvProductsEntity thrInvProductsEntity);
boolean deleteById(@Param("id") String id);

@ -12,9 +12,6 @@ import java.util.List;
public interface ThrInvProductsDetailDao {
List<ThrInvProductsImportDetailEntity> filterInvProductsDetailImport(FilterThrCorpImportLogRequest filterThrCorpImportLogRequest);
boolean insertInvProductsDetailImport(ThrInvProductsImportDetailEntity thrInvProductsImportDetailEntity);
boolean updateInvProductsDetailImport(ThrInvProductsImportDetailEntity thrInvProductsImportDetailEntity);
boolean insertInvProductsDetailImports(@Param("invProducts") List<ThrInvProductsImportDetailEntity> thrInvProductsImportDetailEntities);

@ -22,8 +22,6 @@ public interface ThrInvWarehouseDao extends BaseMapperPlus<ThrInvWarehouseDao, T
boolean insertThrInvWarehouse(ThrInvWarehouseEntity thrInvWarehouseEntity);
boolean insertThrInvWarehouses(@Param("thrInvWarehouseEntitys") List<ThrInvWarehouseEntity> thrInvWarehouseEntitys);
boolean updateThrInvWarehouse(ThrInvWarehouseEntity thrInvWarehouseEntity);
boolean deleteById(@Param("id") String id);
@ -33,8 +31,6 @@ public interface ThrInvWarehouseDao extends BaseMapperPlus<ThrInvWarehouseDao, T
*/
int countSubInvByParentInvId(String parentInvId);
List<ThrInvWarehouseResponse> filterThrInvWarehouseResponse(FilterThrSubInvWarehouseRequest filterThrSubInvWarehouseRequest);
List<ThrInvWarehouseEntity> selectByLastTime(@Param("lastUpdateTime") Date lastUpdateTime);
/**

@ -16,7 +16,6 @@ public interface ThrOrderDao extends BaseMapperPlus<ThrOrderDao, ThrOrderEntity,
boolean insertThrOrder(ThrOrderEntity thrCorpEntity);
boolean insertThrOrders(@Param("thrOrderEntities") List<ThrOrderEntity> thrOrderEntities);
boolean deleteById(@Param("id") String id);

@ -14,9 +14,6 @@ public interface ThrOrderDetailDao extends BaseMapperPlus<ThrOrderDetailDao, Thr
List<ThrOrderDetailEntity> filterThrOrderDetailDetail(FilterThrOrderDetailRequest filterThrOrderDetailRequest);
boolean insertThrOrderDetail(ThrOrderDetailEntity thrOrderDetailEntity);
boolean insertThrOrderDetails(@Param("thrOrderDetailEntities") List<ThrOrderDetailEntity> thrOrderDetailEntities);

@ -13,10 +13,6 @@ public interface ThrOrderImportDetailDao {
List<ThrOrderImportDetailEntity> filterOrderdDetailImport(FilterThrCorpImportLogRequest filterThrCorpImportLogRequest);
boolean insertOrderdDetailImport(ThrOrderImportDetailEntity thrOrderImportDetailEntity);
boolean updateOrderdDetailImport(ThrOrderImportDetailEntity thrOrderImportDetailEntity);
boolean insertOrderdDetailImports(@Param("orders") List<ThrOrderImportDetailEntity> thrOrderImportDetailEntities);
boolean deleteById(@Param("id") String id);

@ -13,14 +13,6 @@ import java.util.List;
@Mapper
public interface ThrProductsAddDiDao {
/**
*
*
* @param list
* @return
*/
boolean insertThrDiProducts(@Param("list") List<ThrProductsAddDiEntity> list);
/**
* ID
*
@ -29,20 +21,6 @@ public interface ThrProductsAddDiDao {
*/
boolean deleteById(Long id);
List<ThrProductsAddDiResponse> filterThrProductsList(FilterThrProductsRequest filterThrProductsRequest);
boolean updateDiProduct(ThrProductsAddDiEntity thrProductsAddDiEntity);
UdiInfoResponse getDiProductDetail(@Param("uuid") String uuid);
/** 根据ID查询 */
ThrProductsAddDiEntity filterThrProductsGetId(@Param("id") Integer id);
ThrProductsAddDiEntity filterThrProductsGetUuid(@Param("uuid") String uuid);
boolean insert(ThrProductsAddDiEntity thrProductsAddDiEntity);
List<ThrProductsAddDiResponse> filterThrProductsDiList(FilterThrProductsRequest filterThrProductsRequest);
List<ThrProductsAddDiEntity> filterThrProductsDiLists(FilterThrProductsRequest filterThrProductsRequest);
}

@ -14,11 +14,6 @@ public interface ThrProductsImportDetailDao {
List<ThrProductsImportDetailEntity> filterProductsDetailImport(FilterThrProductsImportLogRequest filterThrProductsImportLogRequest);
boolean insertProductsDetailImport(ThrProductsImportDetailEntity thrOrderImportDetailEntity);
boolean updateProductsDetailImport(ThrProductsImportDetailEntity thrOrderImportDetailEntity);
boolean insertProductsDetailImports(@Param("products") List<ThrProductsImportDetailEntity> thrOrderImportDetailEntities);
boolean deleteById(@Param("id") String id);

@ -27,10 +27,5 @@ public interface ThrSystemDao extends BaseMapper<ThrSystemEntity> {
*/
ThrSystemEntity selectByThirdIdAndThirdName(@Param("thirdId") String thirdId, @Param("thirdName") String thirdName);
/**
* ID
*/
String selectThirdNameByThirdId(@Param("thirdId") String thirdId);
int countThirdSys(FilterBasicThirdSysRequest filterBasicThirdSysRequest);
}

@ -101,17 +101,6 @@
order by info.deviceCode
</select>
<select id="listVoByProductIdAndStatus" resultType="com.glxp.api.vo.dev.DeviceInfoVo">
select info.*,
dept.name deptName
from device_info info
left join auth_dept dept on dept.code = info.deptCode
where productId = #{productId}
and info.status = #{status}
order by info.deptCode, info.deviceCode
</select>
<select id="listVoByCodes" resultType="com.glxp.api.vo.dev.DeviceInfoVo">
select info.*,
dept.name deptName

@ -252,183 +252,6 @@
</choose>
</select>
<select id="getfilterList" resultType="com.glxp.api.res.inout.IoOrderResponse">
SELECT
io.*,
bbt.name AS billTypeName,
ad.name AS deptName,
aw.name AS invName,
au_create.employeeName AS createUserName,
au_update.employeeName AS updateUserName,
au_review.employeeName AS reviewUserName,
au_check.employeeName AS checkUserName,
ad_from.name AS fromDeptName,
aw_from.name AS fromInvName,
bc_from.name AS fromCorpName,
bc_customer.name AS customerName,
SUM(CASE WHEN iodc.regStatus = 1 THEN 1 ELSE 0 END) AS allCount,
SUM(CASE WHEN iodc.regStatus = 0 THEN 1 ELSE 0 END) AS partCount
FROM
io_order io
LEFT JOIN
basic_bussiness_type bbt ON bbt.action = io.action
LEFT JOIN
auth_dept ad ON ad.code = io.deptCode
LEFT JOIN
auth_warehouse aw ON aw.code = io.invCode
LEFT JOIN
auth_user au_create ON au_create.id = io.createUser
LEFT JOIN
auth_user au_update ON au_update.id = io.updateUser
LEFT JOIN
auth_user au_review ON au_review.id = io.reviewUser
LEFT JOIN
auth_user au_check ON au_check.id = io.checkUser
LEFT JOIN
auth_dept ad_from ON ad_from.code = io.fromDeptCode
LEFT JOIN
auth_warehouse aw_from ON aw_from.code = io.fromInvCode
LEFT JOIN
basic_corp bc_from ON bc_from.erpId = io.fromCorp
LEFT JOIN
basic_corp bc_customer ON bc_customer.erpId = io.customerId
LEFT JOIN
io_order_detail_code iodc ON iodc.orderIdFk = io.billNo
<where>
<if test="billNo != null and billNo != ''">
AND billNo like concat(#{billNo}, '%')
</if>
<if test="action != null and action != ''">
AND action = #{action}
</if>
<if test="id != null and id != ''">
AND id = #{id}
</if>
<if test="corpName != null and corpName != ''">
AND (SELECT NAME FROM auth_warehouse aw2 WHERE aw2.CODE = io.fromInvCode) like
concat('%', #{corpName}, '%')
</if>
<if test="mainAction != null and mainAction != ''">
AND mainAction = #{mainAction}
</if>
<if test="corpOrderId != null and corpOrderId != ''">
AND corpOrderId = #{corpOrderId}
</if>
<if test="fromCorp != null and fromCorp != ''">
AND fromCorp = #{fromCorp}
</if>
<if test="deptCode != null and deptCode != ''">
AND deptCode = #{deptCode}
</if>
<if test="invCode != null and invCode != ''">
AND invCode = #{invCode}
</if>
<if test="busType != null">
AND busType = #{busType}
</if>
<if test="inCodeStatus != null">
AND inCodeStatus = #{inCodeStatus}
</if>
<if test="relKey != null">
AND relKey like concat('%', #{relKey}, '%')
</if>
<if test="startTime != null and startTime != '' and endTime != null and endTime != ''">
AND date_format(createTime, '%Y-%m-%d') between date_format(#{startTime}, '%Y-%m-%d') and
date_format(#{endTime}, '%Y-%m-%d')
</if>
<if test="startAduditTime != null and startAduditTime != '' and endAduditTime != null and endAduditTime != ''">
AND date_format(auditTime, '%Y-%m-%d') between date_format(#{startAduditTime}, '%Y-%m-%d') and
date_format(#{endAduditTime}, '%Y-%m-%d')
</if>
<if test="actions != null and actions.size() != 0">
AND `action` in
<foreach collection="actions" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="sourceTypes != null and sourceTypes.size() != 0">
AND fromType in
<foreach collection="sourceTypes" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="statuses != null and statuses.size() != 0">
AND status in
<foreach collection="statuses" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="dealStatuses != null and dealStatuses.size() != 0">
AND dealStatus in
<foreach collection="dealStatuses" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="orderIds != null and orderIds.size() != 0">
AND io.billNo in
<foreach collection="orderIds" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="status != null">
AND status = #{status}
</if>
<if test="orderType != null">
AND orderType = #{orderType}
</if>
<if test="supInoivceSearch != null">
<if test="invoiceActions1 != null and invoiceActions2 == null">
AND (`action` in
<foreach collection="invoiceActions1" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
and status = 10)
</if>
<if test="invoiceActions1 == null and invoiceActions2 != null">
and (
`action` in
<foreach collection="invoiceActions2" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
and (status = 7 or status = 10)
)
</if>
<if test="invoiceActions1 != null and invoiceActions2 != null">
AND ((`action` in
<foreach collection="invoiceActions1" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
and status = 10)
or (
`action` in
<foreach collection="invoiceActions2" index="index" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
and (status = 7 or status = 10))
)
</if>
</if>
</where>
GROUP BY io.billNo,
bbt.name, ad.name, aw.name, au_create.employeeName, au_update.employeeName,
au_review.employeeName, au_check.employeeName, ad_from.name, aw_from.name,
bc_from.name, bc_customer.name
<choose>
<when test="(orderBy != null) and (sort == 'desc' or sort == 'asc')">
order by ${orderBy} ${sort}
</when>
<otherwise>
order by updateTime desc
</otherwise>
</choose>
</select>
<select id="filterOrderList" resultType="com.glxp.api.entity.inout.IoOrderEntity">
select *
from io_order
@ -646,13 +469,6 @@
</where>
</select>
<select id="selectAliYljgSearchbillByAliBillNo" resultType="java.lang.String">
select aliOrderBillNo
from io_order
where aliOrderBillNo = #{aliOrderBillNo}
limit 1
</select>
<!-- LEFT JOIN io_order_detail_code dc ON io.billNo = dc.orderIdFk-->
<select id="getfilterOrderList" resultType="com.glxp.api.res.inout.IoOrderResponse">

@ -57,32 +57,6 @@
where orderIdFk = #{orderIdFk}
</select>
<select id="getfilterList" resultType="com.glxp.api.res.inout.IoOrderDetailCodeResponse">
select io_order_detail_code.*,
(select count(*)
FROM io_order_invoice
where io_order_invoice.orderIdFk = io_order_detail_code.orderIdFk) as sucCount
from io_order_detail_code
left join basic_udirel bu on bu.id = io_order_detail_code.bindRlFk
left join basic_products bp on bu.uuid = bp.uuid
<where>
<if test="orderIdFk != null and orderIdFk != ''">
AND orderIdFk = #{orderIdFk}
</if>
<if test="relId != null">
AND bindRlFk = #{relId}
</if>
<if test="batchNo != null and batchNo != ''">
AND batchNo = #{batchNo}
</if>
<if test="productName != null and productName != ''">
AND bp.cpmctymc like concat('%', #{productName}, '%')
</if>
</where>
group by io_order_detail_code.id
</select>
<select id="filterListInv" resultType="com.glxp.api.res.inout.IoOrderInvoiceResponse">
SELECT ic.*, bp.cpmctymc,
bp.ggxh,

@ -150,28 +150,6 @@
order by ipp.updateTime desc
</select>
<delete id="deleteInvPreProductDetail">
delete
from inv_prein_product_detail
<where>
<if test="relId != null and relId != ''">
AND relId = #{relId}
</if>
<if test="batchNo != null and batchNo != '' and batchNo != 'empty'">
AND batchNo = #{batchNo}
</if>
<if test="batchNo == 'empty'">
AND batchNo is null
</if>
<if test="supId != null and supId != ''">
AND supId = #{supId}
</if>
<if test="invCode != null and invCode != ''">
AND invCode = #{invCode}
</if>
</where>
</delete>
<select id="getInvPlaceOrderList" resultType="com.glxp.api.res.inout.IoOrderResponse">
select ipd.orderId billNo,
(select name from basic_bussiness_type where action = o.action) billTypeName,

@ -182,64 +182,6 @@
group by ipp.id
</select>
<select id="filterPreProductList" resultType="com.glxp.api.entity.inv.InvPreProductEntity">
select ipp.*
from inv_pre_product ipp
inner join basic_udirel on ipp.relIdFk = basic_udirel.id
inner join basic_products bp on basic_udirel.uuid = bp.uuid
left join basic_corp on ipp.supId = basic_corp.erpId
left join auth_dept on auth_dept.code = ipp.deptCode
left join auth_warehouse on auth_warehouse.code = ipp.invCode
<where>
bp.diType = 1
<if test="cpmctymc != null and cpmctymc != ''">
AND bp.cpmctymc like concat('%', #{cpmctymc}, '%')
</if>
<if test="nameCode != null and nameCode != ''">
AND ipp.nameCode like concat('%', #{nameCode}, '%')
</if>
<if test="relIdFk != null and relIdFk != ''">
AND ipp.relIdFk = #{relIdFk}
</if>
<if test="ggxh != null and ggxh != ''">
AND bp.ggxh like concat('%', #{ggxh}, '%')
</if>
<if test="batchNo != null and batchNo != ''">
AND ipp.batchNo like concat('%', #{batchNo}, '%')
</if>
<if test="productionDate != null and productionDate != ''">
AND ipp.productionDate = #{productionDate}
</if>
<if test="expireDate != null and expireDate != ''">
AND ipp.expireDate = #{expireDate}
</if>
<if test="ylqxzcrbarmc != null and ylqxzcrbarmc != ''">
AND bp.ylqxzcrbarmc like concat('%', #{ylqxzcrbarmc}, '%')
</if>
<if test="zczbhhzbapzbh != null and zczbhhzbapzbh != ''">
AND bp.zczbhhzbapzbh like concat('%', #{zczbhhzbapzbh}, '%')
</if>
<if test="customerId != null and customerId != ''">
AND ipp.customerId = #{customerId}
</if>
<if test="supId != null and supId != ''">
AND ipp.supId = #{supId}
</if>
<if test="deptCode != null and deptCode != ''">
AND ipp.deptCode = #{deptCode}
</if>
<if test="invCode != null and invCode != ''">
AND ipp.invCode = #{invCode}
</if>
<if test="invCodes != null and invCodes.size() != 0">
AND ipp.invCode in
<foreach collection="invCodes" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</where>
</select>
<select id="findGroupBySpace" resultType="com.glxp.api.res.inv.InvPreProductResponse">
select ipp.id,
ipp.nameCode,

@ -181,64 +181,6 @@
group by ipp.id
</select>
<select id="filterPreProductList" resultType="com.glxp.api.entity.inv.InvPreinProductEntity">
select ipp.*
from inv_prein_product ipp
inner join basic_udirel on ipp.relIdFk = basic_udirel.id
inner join basic_products bp on basic_udirel.uuid = bp.uuid
left join basic_corp on ipp.supId = basic_corp.erpId
left join auth_dept on auth_dept.code = ipp.deptCode
left join auth_warehouse on auth_warehouse.code = ipp.invCode
<where>
bp.diType = 1
<if test="cpmctymc != null and cpmctymc != ''">
AND bp.cpmctymc like concat('%', #{cpmctymc}, '%')
</if>
<if test="nameCode != null and nameCode != ''">
AND ipp.nameCode like concat('%', #{nameCode}, '%')
</if>
<if test="relIdFk != null and relIdFk != ''">
AND ipp.relIdFk = #{relIdFk}
</if>
<if test="ggxh != null and ggxh != ''">
AND bp.ggxh like concat('%', #{ggxh}, '%')
</if>
<if test="batchNo != null and batchNo != ''">
AND ipp.batchNo like concat('%', #{batchNo}, '%')
</if>
<if test="productionDate != null and productionDate != ''">
AND ipp.productionDate = #{productionDate}
</if>
<if test="expireDate != null and expireDate != ''">
AND ipp.expireDate = #{expireDate}
</if>
<if test="ylqxzcrbarmc != null and ylqxzcrbarmc != ''">
AND bp.ylqxzcrbarmc like concat('%', #{ylqxzcrbarmc}, '%')
</if>
<if test="zczbhhzbapzbh != null and zczbhhzbapzbh != ''">
AND bp.zczbhhzbapzbh like concat('%', #{zczbhhzbapzbh}, '%')
</if>
<if test="customerId != null and customerId != ''">
AND ipp.customerId = #{customerId}
</if>
<if test="supId != null and supId != ''">
AND ipp.supId = #{supId}
</if>
<if test="deptCode != null and deptCode != ''">
AND ipp.deptCode = #{deptCode}
</if>
<if test="invCode != null and invCode != ''">
AND ipp.invCode = #{invCode}
</if>
<if test="invCodes != null and invCodes.size() != 0">
AND ipp.invCode in
<foreach collection="invCodes" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
</where>
</select>
<select id="findGroupBySpace" resultType="com.glxp.api.res.inv.InvPreinProductResponse">
select ipp.id,
ipp.nameCode,

@ -44,24 +44,4 @@
ipd.relId,
ipd.mainAction
</select>
<select id="filterCompareDetail" resultType="com.glxp.api.res.inv.StockCompareDetailResponse">
SELECT p.cpmctymc,
p.ggxh,
p.nameCode,
p.cpms,
p.manufactory,
p.zczbhhzbapzbh,
p.ylqxzcrbarmc,
ipd.mainAction,
ipd.*
FROM inv_stock_compare_detail ipd
LEFT JOIN basic_udirel udi ON udi.id = ipd.productId
LEFT JOIN basic_products p ON p.uuid = udi.uuid
<where>
<if test="compareId != null and compareId != ''">
and ipd.compareId = #{compareId}
</if>
</where>
</select>
</mapper>

@ -3,18 +3,6 @@
<mapper namespace="com.glxp.api.dao.purchase.CustomerContacDao">
<select id="filterCustomerContact" parameterType="com.glxp.api.req.purchase.CustomerContactFilterRequest"
resultType="com.glxp.api.entity.purchase.CustomerContactEntity">
SELECT *
FROM customer_contact
<where>
<if test="customerId != null and ''!=customerId">
AND customerId = #{customerId}
</if>
</where>
</select>
<insert id="insertCustomerContact" keyProperty="customerId"
parameterType="com.glxp.api.entity.purchase.CustomerContactEntity">
INSERT INTO customer_contact
@ -43,11 +31,6 @@
from customer_contact
where customerId = #{customerId}
</delete>
<delete id="deleteContact" parameterType="com.glxp.api.req.system.DeleteRequest">
delete
from customer_contact
where customerId = #{customerId}
</delete>
<select id="selectById" parameterType="java.lang.Long"
@ -59,4 +42,4 @@
</select>
</mapper>
</mapper>

@ -36,13 +36,6 @@
ORDER BY id DESC
</select>
<select id="findCompanyCertByName" parameterType="java.lang.String"
resultType="com.glxp.api.entity.purchase.SupCertEntity">
SELECT *
FROM sup_cert
where name = #{name}
</select>
<select id="getCompanyCert" parameterType="com.glxp.api.req.purchase.FilterSupCertRequest"
resultType="com.glxp.api.entity.purchase.SupCertEntity">
SELECT * FROM sup_cert
@ -126,24 +119,6 @@
WHERE id = #{id}
</delete>
<delete id="deleteCert" parameterType="com.glxp.api.req.purchase.FilterSupCertRequest">
DELETE
FROM sup_cert
<where>
<if test="customerId != '' and customerId!=null">
and customerId = #{customerId}
</if>
<if test="manufacturerIdFk != '' and manufacturerIdFk!=null">
and manufacturerIdFk = #{manufacturerIdFk}
</if>
<if test="productIdFk != '' and productIdFk!=null">
and productIdFk = #{productIdFk}
</if>
</where>
</delete>
<select id="findByzczbhhzbapzbh" parameterType="com.glxp.api.req.inout.AddBizProductReqeust"
resultType="com.glxp.api.entity.purchase.SupCertEntity">
SELECT sc.*

@ -63,71 +63,6 @@
where customerId = #{customerId}
</delete>
<select id="findCompanyByName" parameterType="java.lang.String"
resultType="com.glxp.api.entity.purchase.SupCompanyEntity">
SELECT *
FROM sup_company
where companyName = #{companyName}
</select>
<select id="getSubCompany" parameterType="com.glxp.api.req.purchase.FilterSupCompanyRequest"
resultType="com.glxp.api.entity.purchase.SupCompanyEntity">
SELECT * FROM sup_company
<where>
<if test="customerId != null and customerId != ''">
and parentIdFk = #{customerId}
</if>
<if test="companyName != null and companyName != ''">
and companyName like concat('%',#{companyName},'%')
</if>
<if test="creditNum != null and creditNum != ''">
and creditNum like concat('%',#{creditNum},'%')
</if>
<if test="auditStatus != null and auditStatus != ''">
and auditStatus = #{auditStatus}
</if>
<if test="unitIdFk != null and unitIdFk != ''">
and unitIdFk = #{unitIdFk}
</if>
<if test="(auditStatus == null or auditStatus == '') and auditStatusList != null and auditStatusList.size() >0">
<foreach collection="auditStatusList" item="auditStatus" open="AND (" separator="OR" close=")">
auditStatus = #{auditStatus,jdbcType=VARCHAR}
</foreach>
</if>
</where>
</select>
<select id="getSubCompany2" parameterType="com.glxp.api.req.purchase.FilterSupCompanyRequest"
resultType="com.glxp.api.entity.purchase.SupCompanyEntity">
SELECT *
FROM (company
inner JOIN company_product_relevance
ON company.customerId = company_product_relevance.customerId)
inner JOIN company_salesman
ON company.customerId = company_salesman.customerId
<where>
<if test="customerId != null and customerId != ''">
and parentIdFk = #{customerId}
</if>
<if test="companyName != null and companyName != ''">
and companyName like concat('%',#{companyName},'%')
</if>
<if test="creditNum != null and creditNum != ''">
and creditNum like concat('%',#{creditNum},'%')
</if>
<if test="auditStatus != null and auditStatus != ''">
and (company.auditStatus = #{auditStatus}
or company_product_relevance.auditStatus = #{auditStatus}
or company_salesman.auditStatus = #{auditStatus})
</if>
<if test="(auditStatus == null or auditStatus == '') and auditStatusList != null and auditStatusList.size() >0">
<foreach collection="auditStatusList" item="auditStatus" open="AND (" separator="OR" close=")">
auditStatus = #{auditStatus,jdbcType=VARCHAR}
</foreach>
</if>
</where>
</select>
<update id="modifyCompany" parameterType="com.glxp.api.entity.purchase.SupCompanyEntity">

@ -10,13 +10,6 @@
where id = #{id}
</select>
<select id="findCompanyByName" parameterType="java.lang.String"
resultType="com.glxp.api.entity.purchase.SupManufacturerEntity">
SELECT *
FROM sup_manufacturer
where companyName = #{companyName}
</select>
<select id="getCompany" parameterType="com.glxp.api.req.purchase.FilterSupManufacturerRequest"
resultType="com.glxp.api.entity.purchase.SupManufacturerEntity">
SELECT sup_manufacturer.* ,sup_company.companyName as supName
@ -158,4 +151,4 @@
</where>
</select>
</mapper>
</mapper>

@ -9,72 +9,6 @@
where id = #{id}
</select>
<select id="findRegistrationByName" parameterType="java.lang.String"
resultType="com.glxp.api.entity.purchase.SupProductEntity">
SELECT *
FROM sup_product
where recordProductName = #{recordProductName}
</select>
<select id="filterProducts" parameterType="com.glxp.api.req.purchase.FilterPoductRequest"
resultType="com.glxp.api.entity.purchase.SupProductEntity">
SELECT sup_product.*
FROM sup_product
<where>
<if test="id != null and id != ''">
and sup_product.id = #{id}
</if>
<if test="productId != null and productId != ''">
and sup_product.productId = #{productId}
</if>
<if test="enterpriseId != null and enterpriseId != ''">
and sup_product.enterpriseId = #{enterpriseId}
</if>
<if test="relIdFk != null and relIdFk != ''">
and sup_product.relIdFk = #{relIdFk}
</if>
<if test="manufactory != null and manufactory != ''">
and sup_product.manufactory = #{manufactory}
</if>
<if test="recordCode != null and recordCode != ''">
and sup_product.recordCode like concat('%', #{recordCode}, '%')
</if>
<if test="recordProductName != null and recordProductName != ''">
and sup_product.recordProductName like concat('%', #{recordProductName}, '%')
</if>
<if test="recordPeopleName != null and recordPeopleName != ''">
and sup_product.recordPeopleName like concat('%', #{recordPeopleName}, '%')
</if>
<if test="manufacturerIdFk != null and manufacturerIdFk != ''">
and sup_product.manufacturerIdFk = #{manufacturerIdFk}
</if>
<if test="customerId != null and customerId != ''">
and sup_product.customerId = #{customerId}
</if>
<if test="auditStatus != null and auditStatus != 20 and auditStatus != 22 and auditStatus != 21">
and sup_product.auditStatus = #{auditStatus}
</if>
<if test="auditStatus == 20">
and (sup_product.auditStatus = 0 or sup_product.auditStatus = 5 or
sup_product.auditStatus = 2)
</if>
<if test="auditStatus == 21">
and <![CDATA[ sup_product.auditStatus <> 0
]]>
</if>
<if test="auditStatus == 22">
and (sup_product.auditStatus = 1 or sup_product.auditStatus = 4)
</if>
<if test="lastUpdateTime != null and lastUpdateTime != ''">
<![CDATA[
and DATE_FORMAT(updateTime, '%Y-%m-%d %H:%i:%S') >= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S')
]]>
</if>
</where>
</select>
<select id="getRegistration" parameterType="com.glxp.api.req.purchase.FilterPoductRequest"
resultType="com.glxp.api.res.purchase.SupProductResponse">
SELECT sup_product.id,
@ -324,61 +258,6 @@
WHERE id = #{id}
</update>
<insert id="insertRegistration" parameterType="com.glxp.api.entity.purchase.SupProductEntity">
replace
INTO sup_product(enterpriseId, recordCode, recordProductName,
productManageType, recordPeopleName, recordPeopleArea,
recordPeopleAreaCode, recordPeopleAddress, productType,
productDirectoryCode, agentName, agentArea,
agentAreaCode, agentAddress, instructions,
productAddress, recordText, placeOrigin,
productionRegion, productionCompanyName, afterSale,
specification, structure, `scope`,
other, filePath, remark,
createTime, updateTime, manufacturerIdFk, customerId, productId
, auditStatus, auditComment, sptm, ybbm, measname, hchzsb, relIdFk, manufactory, allowNoBatch,
allowNoExpire, allowNoProduct, allowNoSerial)
values (#{enterpriseId},
#{recordCode},
#{recordProductName},
#{productManageType},
#{recordPeopleName},
#{recordPeopleArea},
#{recordPeopleAreaCode},
#{recordPeopleAddress},
#{productType},
#{productDirectoryCode},
#{agentName},
#{agentArea},
#{agentAreaCode},
#{agentAddress},
#{instructions},
#{productAddress},
#{recordText},
#{placeOrigin},
#{productionRegion},
#{productionCompanyName},
#{afterSale},
#{specification},
#{structure},
#{scope},
#{other},
#{filePath},
#{remark},
#{createTime},
#{updateTime},
#{manufacturerIdFk},
#{customerId},
#{productId}
,
#{auditStatus},
#{auditComment},
#{sptm},
#{ybbm},
#{measname},
#{hchzsb}, #{relIdFk}, #{manufactory}, #{allowNoBatch}, #{allowNoExpire}, #{allowNoProduct},
#{allowNoSerial})
</insert>
<delete id="deleteById" parameterType="Map">
DELETE
@ -386,11 +265,6 @@
WHERE id = #{id}
</delete>
<delete id="deleteByEnterpriseId" parameterType="Map">
DELETE
FROM sup_product
WHERE enterpriseId = #{enterpriseId}
</delete>
<select id="findProduct" parameterType="com.glxp.api.entity.purchase.SupProductEntity"
resultType="java.lang.Integer">
SELECT count(*)

@ -22,20 +22,6 @@
order BY id
</select>
<select id="findSystemParamConfig" parameterType="com.glxp.api.req.system.FilterParamConfigRequest"
resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
SELECT *
FROM sys_param_config
WHERE id = #{id}
</select>
<select id="selectByParamName" parameterType="com.glxp.api.req.system.FilterParamConfigRequest"
resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
SELECT * FROM sys_param_config WHERE paramName=#{paramName}
</select>
<select id="selectByParamKey" parameterType="com.glxp.api.req.system.FilterParamConfigRequest"
resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
SELECT *
@ -84,4 +70,4 @@
<select id="selectByLastTime" resultType="com.glxp.api.entity.system.SystemParamConfigEntity">
select * from sys_param_config where updateTime >= #{lastUpdateTime}
</select>
</mapper>
</mapper>

@ -26,18 +26,6 @@
#{remark})
</insert>
<update id="updateExportStatus" parameterType="com.glxp.api.entity.sync.BasicExportStatusTimeEntity">
UPDATE basic_export_status_time
<trim prefix="set" suffixOverrides=",">
<if test="lastUpdateTime != null">
lastUpdateTime=#{lastUpdateTime},
</if>
<if test="remark != null">
remark=#{remark},
</if>
</trim>
WHERE `key` = #{key}
</update>
<delete id="deleteById" parameterType="Map">
DELETE
FROM basic_export_status_time

@ -18,14 +18,6 @@
order by update_time desc
</select>
<select id="findSystemPDFTemplate" parameterType="com.glxp.api.req.system.FilterPdfTemplateRequest"
resultType="com.glxp.api.entity.system.SystemPDFTemplateEntity">
SELECT *
FROM sys_pdf_template
WHERE id = #{id}
</select>
<update id="updateById" parameterType="com.glxp.api.entity.system.SystemPDFTemplateEntity">
UPDATE sys_pdf_template
<set>

@ -2,11 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.glxp.api.dao.system.SystemPDFTemplateRelevanceDao">
<select id="listByCustomerId" resultType="com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity">
SELECT templateId
FROM sys_pdf_template_relevance
where customerId = #{customerId}
</select>
<select id="filterList" parameterType="com.glxp.api.req.system.FilterPdfTemplateRelevanceRequest"
resultType="com.glxp.api.res.system.SystemPDFTemplateRelevanceResponse">
@ -33,22 +28,6 @@
</where>
</select>
<select id="listByCustomerIdIn" resultType="com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity">
SELECT *
FROM sys_pdf_template_relevance
where customerId in
<foreach collection="list" item="id" index="index" open="(" close=")" separator=",">
#{id}
</foreach>
</select>
<select id="listByTemplateId" resultType="com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity">
SELECT customerId
FROM sys_pdf_template_relevance
where templateId = #{templateId}
</select>
<insert id="insertSystemPDFTemplateRelevanceAll">
INSERT INTO sys_pdf_template_relevance
(templateId, customerId)
@ -127,18 +106,6 @@
where id = #{id}
</delete>
<select id="selectModuleldAndAction" resultType="com.glxp.api.entity.system.SystemPDFTemplateRelevanceEntity">
SELECT *
FROM sys_pdf_template_relevance
<where>
<if test="moduleId != null">
AND `moduleId` = #{moduleId}
</if>
<if test="localAction != null">
AND `localAction` = #{localAction}
</if>
</where>
</select>
</mapper>

@ -90,9 +90,4 @@
#{createTime})
</insert>
<select id="selectNameByAction" resultType="java.lang.String">
select name
from thr_bustype_origin
where action = #{originAction}
</select>
</mapper>

@ -24,32 +24,6 @@
</select>
<insert id="insertCorpDetailImport" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrCorpImportDetailEntity">
insert INTO thr_corp_import_detail
(
unitId,name,spell,addr,creditNo,
contact,mobile,thirdSysFk,updateTime ,genKeyFk,createUser,createTime,updateUser,remark
)
values
(
#{unitId},
#{name},
#{spell},
#{addr},
#{creditNo},
#{contact},
#{mobile},
#{thirdSysFk},
#{updateTime},
#{genKeyFk},
#{createUser},
#{createTime},
#{updateUser},
#{remark}
)
</insert>
<insert id="insertCorpDetailImports" keyProperty="id" parameterType="java.util.List">
insert INTO thr_corp_import_detail
(
@ -79,31 +53,9 @@
<delete id="deleteByGenkey" parameterType="Map">
DELETE FROM thr_corp_import_detail WHERE genKeyFk = #{genKey}
</delete>
<update id="updateCorpDetailImport" parameterType="com.glxp.api.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>
<if test="remark != null">remark=#{remark},</if>
<if test="createUser != null">createUser=#{createUser},</if>
<if test="createTime != null">createTime=#{createTime},</if>
<if test="updateUser != null">updateUser=#{updateUser},</if>
</trim>
WHERE id = #{id}
</update>
<delete id="deleteByTime">
Delete From thr_corp_import_detail
where date(updateTime) &lt;= date(DATE_SUB(NOW(),INTERVAL 30 day))
</delete>
</mapper>
</mapper>

@ -51,34 +51,6 @@
WHERE id = #{id}
</select>
<select id="filterThrGroupInvWarehouse" parameterType="com.glxp.api.req.thrsys.FilterThrDeptRequest"
resultType="com.glxp.api.entity.thrsys.ThrDeptEntity">
SELECT * FROM thr_dept
<where>
<if test="id != '' and id != null">
AND id = #{id}
</if>
<if test="pid != '' and pid != null">
AND pid = #{pid}
</if>
<if test="code != '' and code != null">
AND code = #{code}
</if>
<if test="name != '' and name != null">
AND name = #{name}
</if>
<if test="advanceType != '' and advanceType != null">
AND advanceType = #{advanceType}
</if>
<if test="isDefault != '' and isDefault != null">
AND isDefault = #{isDefault}
</if>
<if test="thirdSysFk != null">
AND thirdSysFk = #{thirdSysFk}
</if>
</where>
</select>
<insert id="insertThrDept" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrDeptEntity">
replace
@ -160,26 +132,6 @@
</if>
</where>
</select>
<insert id="insertThrDeptList">
replace into thr_dept (id,pid, code, `name`, advanceType, isDefault, status, updateTime, remark, `level`,
pcode,
thirdSysFk)
values
<foreach collection="thrDeptEntities" index="index" item="item" separator=",">
(#{item.id},
#{item.pid},
#{item.code},
#{item.name},
#{item.advanceType},
#{item.isDefault},
#{item.status},
#{item.updateTime},
#{item.remark},
#{item.level},
#{item.pcode},
#{item.thirdSysFk})
</foreach>
</insert>
<select id="selectByLastTime" resultType="com.glxp.api.entity.thrsys.ThrDeptEntity">
select * from thr_dept where updateTime >= #{lastUpdateTime}

@ -38,25 +38,6 @@
<select id="selectById" parameterType="Map" resultType="com.glxp.api.entity.thrsys.ThrInvProductsEntity">
select * FROM thr_inv_products WHERE id = #{id}
</select>
<insert id="insertThrInvProduct" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrInvProductsEntity">
replace INTO thr_inv_products
(
inventoryCode,inventoryName,count,spec,
warehouseName,warehouseCode,registerCertNo,manufacturingDate,
expirationDate,thirdSysFk,batchNo,spaceCode,spaceName,updateTime,manufactory,
productDate, expireDate, productName, productId, standard, registerNo, supId, supName,createUser,createTime,updateUser,remark
)
values
(
#{inventoryCode}, #{inventoryName}, #{count}, #{spec},
#{warehouseName}, #{warehouseCode}, #{registerCertNo}, #{manufacturingDate},
#{expirationDate},
#{thirdSysFk},#{batchNo},#{spaceCode},#{spaceName},#{updateTime},#{manufactory},
#{productDate}, #{expireDate}, #{productName}, #{productId}, #{standard},
#{registerNo}, #{supId}, #{supName} #{createUser},#{createTime}, #{updateUser}, #{remark}
)
</insert>
<insert id="insertThrInvProducts" keyProperty="id" parameterType="java.util.List">
replace INTO thr_inv_products
@ -90,38 +71,5 @@
DELETE FROM thr_inv_products
</delete>
<update id="updateThrInvProducts" parameterType="com.glxp.api.entity.thrsys.ThrInvProductsEntity">
UPDATE thr_inv_products
<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>8
<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="manufactory != null">manufactory=#{manufactory},</if>
<if test="productDate != null">productDate=#{productDate},</if>
<if test="expireDate != null">expireDate=#{expireDate},</if>
<if test="productName != null">productName=#{productName},</if>
<if test="productId != null">productId=#{productId},</if>
<if test="standard != null">standard=#{standard},</if>
<if test="registerNo != null">registerNo=#{registerNo},</if>
<if test="supId != null">supId=#{supId},</if>
<if test="supName != null">supName=#{supName},</if>
<if test="remark != null">remark=#{remark},</if>
<if test="createUser != null">createUser=#{createUser},</if>
<if test="createTime != null">createTime=#{createTime},</if>
<if test="updateUser != null">updateUser=#{updateUser},</if>
</trim>
WHERE id = #{id}
</update>
</mapper>

@ -23,24 +23,6 @@
</select>
<insert id="insertInvProductsDetailImport" keyProperty="id"
parameterType="com.glxp.api.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,createUser,createTime,updateUser,remark
)
values
(
#{inventoryCode}, #{inventoryName}, #{count}, #{spec},
#{warehouseName}, #{warehouseCode}, #{registerCertNo}, #{manufacturingDate},#{expirationDate},
#{thirdSysFk},#{batchNo},#{spaceCode},#{spaceName},
#{updateTime},#{genKeyFk},#{createUser},#{createTime}, #{updateUser},#{remark},
)
</insert>
<insert id="insertInvProductsDetailImports" keyProperty="id" parameterType="java.util.List">
insert INTO thr_inv_products_import_detail
(
@ -65,30 +47,5 @@
DELETE FROM thr_inv_products_import_detail WHERE genKeyFk = #{genKey}
</delete>
<update id="updateInvProductsDetailImport" parameterType="com.glxp.api.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>
<if test="remark != null">remark=#{remark},</if>
<if test="createUser != null">createUser=#{createUser},</if>
<if test="createTime != null">createTime=#{createTime},</if>
<if test="updateUser != null">updateUser=#{updateUser},</if>
</trim>
WHERE id = #{id}
</update>
</mapper>
</mapper>

@ -62,30 +62,6 @@
where parentId = (select code from thr_dept where id = #{parentInvId})
</select>
<select id="filterThrInvWarehouseResponse"
resultType="com.glxp.api.res.thrsys.ThrInvWarehouseResponse">
select t1.*, t2.name as parentName
from thr_inv_warehouse t1
left join thr_dept t2
on t2.code = t1.parentId
<where>
<if test="id != '' and id != null">
AND t1.id = #{id}
</if>
<if test="code != '' and code != null">
AND t1.code = #{code}
</if>
<if test="name != '' and name != null">
AND t1.`name` = #{name}
</if>
<if test="parentId != '' and parentId != null">
AND t1.parentId = #{parentId}
</if>
<if test="thirdSysFk != null">
and t1.thirdSysFk = #{thirdSysFk}
</if>
</where>
</select>
<insert id="insertThrInvWarehouse" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrInvWarehouseEntity">
@ -101,18 +77,6 @@
#{updateTime})
</insert>
<insert id="insertThrInvWarehouses" parameterType="java.util.List">
replace INTO thr_inv_warehouse
(id, code, `name`, parentId, remark, thirdSysFk, updateTime)
VALUES
<foreach collection="thrInvWarehouseEntitys" item="item" index="index"
separator=",">
(#{item.id}, #{item.code},
#{item.name}, #{item.parentId},
#{item.remark}, #{item.thirdSysFk}, #{item.updateTime})
</foreach>
</insert>
<delete id="deleteById" parameterType="Map">
DELETE
FROM thr_inv_warehouse

@ -75,37 +75,6 @@
#{remark})
</insert>
<insert id="insertThrOrders" keyProperty="id" parameterType="java.util.List">
replace INTO thr_order
(billFlag, billNo, billdate, billType, corpId, corpName, inoutType, deptCode,
invCode, thirdSysFk, createUser, createTime, updateUser, updateTime, reviewUser, reviewTime,
address,
linkMan, linkTel, remark)
values
<foreach collection="thrOrderEntities" item="item" index="index"
separator=",">
(#{item.billFlag},
#{item.billNo},
#{item.billdate},
#{item.billType},
#{item.corpId},
#{item.corpName},
#{item.inoutType},
#{item.deptCode},
#{item.invCode},
#{item.thirdSysFk},
#{item.createUser},
#{item.createTime},
#{item.updateUser},
#{item.updateTime},
#{item.reviewUser},
#{item.reviewTime},
#{item.address},
#{item.linkMan},
#{item.linkTel},
#{item.remark})
</foreach>
</insert>
<delete id="deleteById" parameterType="Map">
DELETE

@ -16,38 +16,6 @@
</where>
</select>
<insert id="insertThrOrderDetail" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrOrderDetailEntity">
replace
INTO thr_order_detail
(productId, productName, spec, batchNo, expireDate, productDate, count, reCount, orderIdFk, thirdSysFk, supId,
supName, price, corpName, ylqxzcrbarmc, zczbhhzbapzbh, manufactory, createUser, createTime, updateUser,
updateTime, remark)
values (#{productId},
#{productName},
#{spec},
#{batchNo},
#{expireDate},
#{productDate},
#{count},
#{reCount},
#{orderIdFk},
#{thirdSysFk},
#{supId},
#{supName},
#{price},
#{corpName},
#{ylqxzcrbarmc},
#{zczbhhzbapzbh},
#{manufactory},
#{createUser},
#{createTime},
#{updateUser},
#{updateTime},
#{remark})
</insert>
<insert id="insertThrOrderDetails" keyProperty="id" parameterType="java.util.List" useGeneratedKeys="true">
replace INTO thr_order_detail
(productId, productName, spec, batchNo, expireDate, productDate, count, reCount, orderIdFk, thirdSysFk,

@ -23,21 +23,6 @@
</select>
<insert id="insertOrderdDetailImport" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrOrderImportDetailEntity">
insert INTO thr_order_import_detail
(
billNo,billdate,corpId,corpName,billType,billFlag,productId,productName,spec,batchNo,expireDate,
productDate,count,reCount,status,updateTime,remark,genKeyFk,thirdSysFk,originType
)
values
(
#{billNo},#{billdate},#{corpId},#{corpName},#{billType},#{billFlag},#{productId},#{productName},#{spec},
#{batchNo},#{expireDate},#{productDate},#{count},#{reCount},#{status},#{updateTime},#{remark},#{genKeyFk},#{thirdSysFk},#{originType}
)
</insert>
<insert id="insertOrderdDetailImports" keyProperty="id" parameterType="java.util.List">
insert INTO thr_order_import_detail
(
@ -61,39 +46,9 @@
DELETE FROM thr_order_import_detail WHERE genKeyFk = #{genKey}
</delete>
<update id="updateOrderdDetailImport" parameterType="com.glxp.api.entity.thrsys.ThrOrderImportDetailEntity">
UPDATE thr_order_import_detail
<trim prefix="set" suffixOverrides=",">
<if test="billNo != null">billNo=#{billNo},</if>
<if test="billdate != null">billdate=#{billdate},</if>
<if test="corpId != null">corpId=#{corpId},</if>
<if test="corpName != null">corpName=#{corpName},</if>
<if test="billType != null">billType=#{billType},</if>
<if test="billFlag != null">billFlag=#{billFlag},</if>
<if test="productId != null">productId=#{productId},</if>
<if test="productName != null">productName=#{productName},</if>
<if test="spec != null">spec=#{spec},</if>
<if test="expireDate != null">expireDate=#{expireDate},</if>
<if test="batchNo != null">batchNo=#{batchNo},</if>
<if test="productDate != null">productDate=#{productDate},</if>
<if test="count != null">count=#{count},</if>
<if test="reCount != null">reCount=#{reCount},</if>
<if test="status != null">status=#{status},</if>
<if test="updateTime != null">updateTime=#{updateTime},</if>
<if test="genKeyFk != null">genKeyFk=#{genKeyFk},</if>
<if test="remark != null">remark=#{remark},</if>
<if test="thirdSysFk != null">thirdSysFk=#{thirdSysFk},</if>
<if test="originType != null">originType=#{originType},</if>
</trim>
WHERE id = #{id}
</update>
<delete id="deleteByTime">
Delete From thr_order_import_detail
where date(updateTime) &lt;= date(DATE_SUB(NOW(),INTERVAL 30 day))
</delete>
</mapper>
</mapper>

@ -2,200 +2,12 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.glxp.api.dao.thrsys.ThrProductsAddDiDao">
<insert id="insertThrDiProducts" keyProperty="id" parameterType="java.util.List">
insert into thr_products_add_di (uuid, customerId, createTime,
auditTime, remark, auditUser,
`status`, thirdSysFk, code,
sptm, ybbm, measname,
manufactory, spmc, cpms,
price, selectThridSysStr, basicPrductRemak1,
basicPrductRemak2, basicPrductRemak3, basicPrductRemak4,
basicPrductRemak5, basicPrductRemak6, basicPrductRemak7,
basicPrductRemak8, `name`, spec,
registerNo, cplb, flbm,
qxlb, tyshxydm, zczbhhzbapzbh,
ylqxzcrbarmc, ylqxzcrbarywmc, updateTime,
supName, model, `standard`,
qtbm, zczyxqz, relId, type)
values
<foreach collection="list" index="index" item="item" separator=",">
(#{item.uuid},
#{item.customerId},
#{item.createTime},
#{item.auditTime},
#{item.remark},
#{item.auditUser},
#{item.status},
#{item.thirdSysFk},
#{item.code},
#{item.sptm},
#{item.ybbm},
#{item.measname},
#{item.manufactory},
#{item.spmc},
#{item.cpms}, #{item.price}, #{item.selectThridSysStr}
, #{item.basicPrductRemak1}, #{item.basicPrductRemak2}, #{item.basicPrductRemak3},
#{item.basicPrductRemak4}
, #{item.basicPrductRemak5}, #{item.basicPrductRemak6}, #{item.basicPrductRemak7},
#{item.basicPrductRemak8}
, #{item.name}, #{item.spec}, #{item.registerNo}, #{item.cplb}
, #{item.flbm}, #{item.qxlb}, #{item.tyshxydm}, #{item.zczbhhzbapzbh}
, #{item.ylqxzcrbarmc}, #{item.ylqxzcrbarywmc}, #{item.updateTime}, #{item.supName}, #{item.model}
, #{item.standard}, #{item.qtbm}, #{item.standard}, #{item.zczyxqz}, #{item.type})
</foreach>
</insert>
<update id="updateDiProduct" parameterType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity">
update thr_products_add_di
<trim prefix="set" suffixOverrides=",">
<if test="uuid != null">
uuid=#{uuid},
</if>
<if test="customerId != null">
customerId=#{customerId},
</if>
<if test="createTime != null">
createTime=#{createTime},
</if>
<if test="auditTime != null">
auditTime=#{auditTime},
</if>
<if test="remark != null">
remark=#{remark},
</if>
<if test="auditUser != null">
auditUser=#{auditUser},
</if>
<if test="thirdSysFk != null">
`thirdSysFk`=#{thirdSysFk},
</if>
<if test="code != null">
`code`=#{code},
</if>
<if test="sptm != null">
`sptm`=#{sptm},
</if>
<if test="ybbm != null">
`ybbm`=#{ybbm},
</if>
<if test="measname != null">
`measname`=#{measname},
</if>
<if test="manufactory != null">
`manufactory`=#{manufactory},
</if>
<if test="spmc != null">
`spmc`=#{spmc},
</if>
<if test="cpms != null">
`cpms`=#{cpms},
</if>
<if test="status != null">
`status`=#{status},
</if>
<if test="price != null">
`price`=#{price},
</if>
<if test="basicPrductRemak1 != null">
`basicPrductRemak1`=#{basicPrductRemak1},
</if>
<if test="basicPrductRemak2 != null">
`basicPrductRemak2`=#{basicPrductRemak2},
</if>
<if test="basicPrductRemak3 != null">
`basicPrductRemak3`=#{basicPrductRemak3},
</if>
<if test="basicPrductRemak4 != null">
`basicPrductRemak4`=#{basicPrductRemak4},
</if>
<if test="basicPrductRemak5 != null">
`basicPrductRemak5`=#{basicPrductRemak5},
</if>
<if test="basicPrductRemak6 != null">
`basicPrductRemak6`=#{basicPrductRemak6},
</if>
<if test="basicPrductRemak7 != null">
`basicPrductRemak7`=#{basicPrductRemak7},
</if>
<if test="basicPrductRemak8 != null">
`basicPrductRemak8`=#{basicPrductRemak8},
</if>
<if test="selectThridSysStr != null">
`selectThridSysStr`=#{selectThridSysStr},
</if>
</trim>
WHERE id = #{id}
</update>
<delete id="deleteById">
delete
from thr_products_add_di
where id = #{id}
</delete>
<select id="filterThrProductsGetId" parameterType="integer"
resultType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity">
select *
from thr_products_add_di
where id = #{id}
</select>
<select id="filterThrProductsGetUuid" parameterType="string"
resultType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity">
select *
from thr_products_add_di
where uuid = #{uuid}
</select>
<select id="filterThrProductsList" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
resultType="com.glxp.api.res.thrsys.ThrProductsAddDiResponse">
SELECT tdi.*,
bc.name companyName
FROM thr_products_add_di tdi
left join basic_corp bc on tdi.customerId = bc.erpId
<where>
<if test="checkStatus != null">
AND tdi.status = #{checkStatus}
</if>
<if test="id != null">
AND tdi.id = #{id}
</if>
<if test="customerId != null">
AND tdi.customerId = #{customerId}
</if>
<if test="code != '' and code != null">
AND (tdi.sptm = #{code} OR code = #{code} OR tdi.ybbm = #{code})
</if>
<if test="uuid != '' and uuid != null">
AND tdi.uuid = #{uuid}
</if>
<if test="name != '' and name != null">
AND tdi.name = #{name}
</if>
<if test="spec != '' and spec != null">
AND tdi.spec = #{spec}
</if>
<if test="checkStatus != null">
AND tdi.status = #{checkStatus}
</if>
<if test="customerId != '' and customerId != null">
AND tdi.customerId = #{customerId}
</if>
<if test="registerNo != '' and registerNo != null">
AND tdi.registerNo = #{registerNo}
</if>
</where>
order by tdi.createTime DESC
</select>
<select id="getDiProductDetail" resultType="com.glxp.api.res.thrsys.UdiInfoResponse">
select *
from productinfo
where uuid = #{uuid}
limit 1
</select>
<insert id="insert" keyColumn="id" keyProperty="id"
parameterType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity" useGeneratedKeys="true">
<!--@mbg.generated-->
@ -232,39 +44,5 @@
#{type,jdbcType=VARCHAR})
</insert>
<select id="filterThrProductsDiList" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
resultType="com.glxp.api.res.thrsys.ThrProductsAddDiResponse">
SELECT tdi.*
FROM thr_products_add_di tdi
<where>
<if test="thirdSysFk != null">
AND tdi.thirdSysFk = #{thirdSysFk}
</if>
<if test="code != null">
AND tdi.code = #{code}
</if>
<if test="status != null">
AND tdi.status = #{status}
</if>
</where>
</select><select id="filterThrProductsDiLists" parameterType="com.glxp.api.req.thrsys.FilterThrProductsRequest"
resultType="com.glxp.api.entity.thrsys.ThrProductsAddDiEntity">
SELECT tdi.*
FROM thr_products_add_di tdi
<where>
<if test="thirdSysFk != null">
AND tdi.thirdSysFk = #{thirdSysFk}
</if>
<if test="code != null">
AND tdi.code = #{code}
</if>
<if test="status != null">
AND tdi.status = #{status}
</if>
<if test="diType != null">
AND updateTime &lt;= "2023-04-5 00:00:00"
</if>
</where>
</select>
</mapper>

@ -23,45 +23,6 @@
</select>
<insert id="insertProductsDetailImport" keyProperty="id"
parameterType="com.glxp.api.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, supName, price)
values (#{code},
#{name},
#{measname},
#{spec},
#{registerNo},
#{manufactory},
#{cplb}, #{flbm}, #{qxlb}, #{ybbm}, #{sptm},
#{tyshxydm}, #{zczbhhzbapzbh}, #{ylqxzcrbarmc}, #{ylqxzcrbarywmc}, #{cpms}
#{thirdSysFk}, #{updateTime}, #{genKeyFk}, #{supName}, #{price})
</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,supName,price )
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} ,#{item.supName} ,#{item.price} )
</foreach>
</insert>
<delete id="deleteById" parameterType="Map">
DELETE
FROM thr_products_import_detail
@ -73,38 +34,11 @@
WHERE genKeyFk = #{genKey}
</delete>
<update id="updateProductsDetailImport"
parameterType="com.glxp.api.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>
<if test="supName != null">supName=#{supName},</if>
</trim>
WHERE id = #{id}
</update>
<delete id="deleteByTime">
Delete From thr_products_import_detail
where date(updateTime) &lt;= date(DATE_SUB(NOW(),INTERVAL 30 day))
</delete>
</mapper>
</mapper>

@ -54,11 +54,6 @@
where thirdId = #{thirdId}
and thirdName = #{thirdName}
</select>
<select id="selectThirdNameByThirdId" resultType="java.lang.String">
select thirdName
from thr_system
where thirdId = #{thirdId}
</select>
<select id="countThirdSys" resultType="java.lang.Integer">
select count(*) from thr_system

Loading…
Cancel
Save