验收传参问题

master
anthonyywj2 3 years ago
parent 3d7877c32b
commit 48a358541c

@ -21,6 +21,8 @@ public interface EntrustReceDao {
boolean insertEntrustRec(EntrustReceEntity ioOrderStatusEntity);
boolean replaceEntrustRec(EntrustReceEntity entrustReceEntity);
boolean deleteById(String id);
boolean deleteAll();

@ -20,6 +20,8 @@ public interface EntrustReceService {
boolean insertEntrustRec(EntrustReceEntity ioOrderStatusEntity);
boolean replaceEntrustRec(EntrustReceEntity entrustReceEntity);
boolean deleteById(String id);
boolean deleteAll();

@ -74,6 +74,11 @@ public class EntrustReceServiceImpl implements EntrustReceService {
return entrustReceDao.insertEntrustRec(entrustReceEntity);
}
@Override
public boolean replaceEntrustRec(EntrustReceEntity entrustReceEntity) {
return entrustReceDao.replaceEntrustRec(entrustReceEntity);
}
@Override
public boolean deleteById(String id) {
return entrustReceDao.deleteById(id);

@ -388,7 +388,7 @@ public class DlBasicService {
entrustReceService.deleteAll();
for (EntrustReceEntity entrustReceEntity : syncDataResponse.getEntrustReceEntities()) {
entrustReceEntity.setUpdateTime(null);
entrustReceService.insertEntrustRec(entrustReceEntity);
entrustReceService.replaceEntrustRec(entrustReceEntity);
}
}

@ -117,6 +117,25 @@
)
</insert>
<insert id="replaceEntrustRec" keyProperty="id"
parameterType="com.glxp.api.admin.entity.basic.EntrustReceEntity">
replace
INTO basic_entrust_accept(id,`action`, entrustInv, `entrustUser`, userId, updateTime, remark,entrustAction,finishRece,curInv)
values (
#{id},
#{action},
#{entrustInv},
#{entrustUser},
#{userId},
#{updateTime},
#{remark},
#{entrustAction},
#{finishRece},
#{curInv}
)
</insert>
<update id="updateEntrustRec" parameterType="com.glxp.api.admin.entity.basic.EntrustReceEntity">
UPDATE basic_entrust_accept
<trim prefix="set" suffixOverrides=",">

Loading…
Cancel
Save