Commit 3a23e6a7 by wuwenlong

存货类型名称同步bugfix;

parent ee5cad33
......@@ -56,7 +56,9 @@ public class HPPZ004 extends DaoEPBase {
public static final String INSERT = "HPPZ004.insert";
public static final String UPDATE = "HPPZ004.update";
public static final String DELETE = "HPPZ004.delete";
public static final String DELETE_BACK = "HPPZ004.deleteBack";
private Long id;
private String companyCode = " "; /* 企业编码 预留*/
private String depCode = " "; /* 部门编码*/
......
......@@ -127,6 +127,10 @@ public class ServiceHPPZ004 extends ServiceBase {
HPPZ004 hppz004 = new HPPZ004();
if(CollectionUtils.isNotEmpty(list)){
hppz004.fromMap(list.get(0));
if(hppz004.getDeleteFlag()== CommonConstant.YesNo.YES_1) {
hppz004.setDeleteFlag(CommonConstant.YesNo.NO_0);
DaoUtils.update(HPPZ004.DELETE_BACK, hppz004);
}
}else{
// 生成编码
hppz004.setInventCode(SequenceGenerator.getNextSequence(HPConstant.SequenceId.INVENT_CODE));
......
......@@ -119,6 +119,11 @@
UPDATE hpjx.T_HPPZ004 SET DELETE_FLAG = 1 WHERE ID = #id#
</delete>
<!-- 逻辑删除 -->
<delete id="deleteBack">
UPDATE hpjx.T_HPPZ004 SET DELETE_FLAG = 0 WHERE ID = #id#
</delete>
<update id="update">
UPDATE hpjx.t_hppz004
SET
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment