refactor(deletedata): 更新删除数据工具以包含新的业务类型- 在 DeleteU8cDataUtilEntity.xml 中添加新的业务类型 '0001A11000000000H1FM'
- 更新 SoSaleReturnPluginInitializerToCTest 中的测试代码 - 调整 DeleteU8cDataUtil 中的逻辑,使用 vreceiptcode 替代 dbilldate
This commit is contained in:
parent
0141ca774f
commit
eb93b202bb
|
@ -56,14 +56,13 @@ public class SoSaleReturnPluginInitializerToCTest {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// BdBusitypeEntity bdBusitypeEntity1 = queryBdBusitypeUtil.queryBdBusitype("TOC销售");
|
// BdBusitypeEntity bdBusitypeEntity1 = queryBdBusitypeUtil.queryBdBusitype("TOC销售");
|
||||||
// System.out.println("TOC销售:" + bdBusitypeEntity1.getPkBusitype());
|
// System.out.println("TOC销售:" + bdBusitypeEntity1.getPkBusitype());
|
||||||
BdBusitypeEntity bdBusitypeEntity2 = queryBdBusitypeUtil.queryBdBusitype("TOC冲发出商品");
|
BdBusitypeEntity bdBusitypeEntity2 = queryBdBusitypeUtil.queryBdBusitype("TOC冲发出商品");
|
||||||
System.out.println("TOC冲发出商品:" + bdBusitypeEntity2.getPkBusitype());
|
System.out.println("TOC冲发出商品:" + bdBusitypeEntity2.getPkBusitype());
|
||||||
BdBusitypeEntity bdBusitypeEntity3 = queryBdBusitypeUtil.queryBdBusitype("TOC确认收入");
|
BdBusitypeEntity bdBusitypeEntity3 = queryBdBusitypeUtil.queryBdBusitype("TOC确认收入");
|
||||||
System.out.println("TOC确认收入:" + bdBusitypeEntity3.getPkBusitype());
|
System.out.println("TOC确认收入:" + bdBusitypeEntity3.getPkBusitype());
|
||||||
// BdBusitypeEntity bdBusitypeEntity4 = queryBdBusitypeUtil.queryBdBusitype("TOC售后完成");
|
BdBusitypeEntity bdBusitypeEntity4 = queryBdBusitypeUtil.queryBdBusitype("TOC售后完成");
|
||||||
// System.out.println("TOC售后完成:" + bdBusitypeEntity4.getPkBusitype());
|
System.out.println("TOC售后完成:" + bdBusitypeEntity4.getPkBusitype());
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -31,9 +31,9 @@ public class DeleteU8cDataUtilTest {
|
||||||
//删除销售出库单
|
//删除销售出库单
|
||||||
// deleteU8cDataUtil.deleteIcGeneralH();
|
// deleteU8cDataUtil.deleteIcGeneralH();
|
||||||
//删除销售订单
|
//删除销售订单
|
||||||
// deleteU8cDataUtil.deleteSoSale();
|
deleteU8cDataUtil.deleteSoSale();
|
||||||
//销售订单取消审核
|
//销售订单取消审核
|
||||||
deleteU8cDataUtil.cancelSignatureSoSale();
|
// deleteU8cDataUtil.cancelSignatureSoSale();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,7 @@ public class DeleteU8cDataUtil {
|
||||||
DeleteU8cDataUtilEntity deleteU8cDataUtilEntity = soSaleinvoiceEntities.get(i);
|
DeleteU8cDataUtilEntity deleteU8cDataUtilEntity = soSaleinvoiceEntities.get(i);
|
||||||
|
|
||||||
List<String> stringList = new ArrayList<>();
|
List<String> stringList = new ArrayList<>();
|
||||||
stringList.add(deleteU8cDataUtilEntity.getDbilldate());
|
stringList.add(deleteU8cDataUtilEntity.getVreceiptcode());
|
||||||
|
|
||||||
JsonRootBeanCancelSignature jsonRootBeanCancelSignature = new JsonRootBeanCancelSignature();
|
JsonRootBeanCancelSignature jsonRootBeanCancelSignature = new JsonRootBeanCancelSignature();
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
so_saleinvoice a
|
so_saleinvoice a
|
||||||
LEFT JOIN bd_corp b ON b.pk_corp = a.pk_corp
|
LEFT JOIN bd_corp b ON b.pk_corp = a.pk_corp
|
||||||
WHERE
|
WHERE
|
||||||
a.cbiztype IN ('0001A110000000001TH5', '0001A110000000001TH6')
|
a.cbiztype IN ('0001A110000000001TH5', '0001A110000000001TH6','0001A11000000000H1FM')
|
||||||
AND a.dbilldate >= '2024-11-01 00:00:00'
|
AND a.dbilldate >= '2024-11-01 00:00:00'
|
||||||
AND a.dbilldate <= '2024-11-30 23:59:59'
|
AND a.dbilldate <= '2024-11-30 23:59:59'
|
||||||
AND a.FSTATUS = 1
|
AND a.FSTATUS = 1
|
||||||
|
@ -52,7 +52,7 @@
|
||||||
ic_general_h a
|
ic_general_h a
|
||||||
LEFT JOIN bd_corp b ON b.pk_corp = a.pk_corp
|
LEFT JOIN bd_corp b ON b.pk_corp = a.pk_corp
|
||||||
WHERE
|
WHERE
|
||||||
a.cbiztype IN ('0001A110000000001TH5', '0001A110000000001TH6')
|
a.cbiztype IN ('0001A110000000001TH5', '0001A110000000001TH6','0001A11000000000H1FM')
|
||||||
AND a.dbilldate >= '2024-11-01 00:00:00'
|
AND a.dbilldate >= '2024-11-01 00:00:00'
|
||||||
AND a.dbilldate <= '2024-11-30 23:59:59'
|
AND a.dbilldate <= '2024-11-30 23:59:59'
|
||||||
AND a.fbillflag = 2
|
AND a.fbillflag = 2
|
||||||
|
@ -81,7 +81,7 @@
|
||||||
so_sale a
|
so_sale a
|
||||||
LEFT JOIN bd_corp b ON b.pk_corp = a.pk_corp
|
LEFT JOIN bd_corp b ON b.pk_corp = a.pk_corp
|
||||||
WHERE
|
WHERE
|
||||||
a.cbiztype IN ( '0001A110000000001TH5', '0001A110000000001TH6' )
|
a.cbiztype IN ( '0001A110000000001TH5', '0001A110000000001TH6' ,'0001A11000000000H1FM')
|
||||||
AND a.dbilldate >= '2024-11-01 00:00:00'
|
AND a.dbilldate >= '2024-11-01 00:00:00'
|
||||||
AND a.dbilldate <= '2024-11-30 23:59:59'
|
AND a.dbilldate <= '2024-11-30 23:59:59'
|
||||||
<if test="fstatus!=null and fstatus!=''">
|
<if test="fstatus!=null and fstatus!=''">
|
||||||
|
|
Loading…
Reference in New Issue