模版编制的相关实现
This commit is contained in:
@@ -30,6 +30,6 @@ public interface TemplateInstanceDataMapper extends BaseMapperX<TemplateInstance
|
||||
}
|
||||
int deleteByTemplateInstanceId(@Param("templateInstanceId") Long templateInstanceId);
|
||||
|
||||
int updateFldValBatchById(@Param("id") Long id, @Param("fldVal") String fldVal);
|
||||
int updateFldValById(@Param("inscId") String inscId, @Param("fldVal") String fldVal, @Param("fldKy") String fldKy);
|
||||
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ public class TemplateInstanceDataServiceImpl implements TemplateInstanceDataServ
|
||||
if (CollUtil.isEmpty(pageReqVOS)) {
|
||||
throw exception(PARAMS_IS_NULL_OR_ERR);
|
||||
}
|
||||
pageReqVOS.forEach(i->templateInstanceDataMapper.updateFldValBatchById(i.getId(),i.getFldVal()));
|
||||
pageReqVOS.forEach(i->templateInstanceDataMapper.updateFldValById(i.getInscId(),i.getFldVal(),i.getFldKy()));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
set deleted = 1
|
||||
WHERE INSC_ID = #{templateInstanceId}
|
||||
</update>
|
||||
<update id="updateFldValBatchById">
|
||||
<update id="updateFldValById">
|
||||
update BSE_TMPL_INSC_DAT
|
||||
set FLD_VAL = #{fldVal}
|
||||
where id = #{id}
|
||||
where INSC_ID = #{inscId} AND FLD_KY=#{fldKy}
|
||||
</update>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user