报工问题修改

tags/yfai-pcn-ext-v1.2
微笑着面对明天 10 months ago
parent fb52cb2394
commit 62f7b28af9

@ -81,7 +81,7 @@ public class PcnRepositoryAspect {
@After("controllerPointcut()") @After("controllerPointcut()")
public void after(JoinPoint joinPoint) { public void after(JoinPoint joinPoint) {
String methodName = joinPoint.getSignature().getName(); String methodName = joinPoint.getSignature().getName();
if (methodName.startsWith("updateByProperties")) { if (methodName.equals("updateByProperties")) {
try { try {
Object[] args = joinPoint.getArgs(); Object[] args = joinPoint.getArgs();
Method method = ((MethodSignature)joinPoint.getSignature()).getMethod(); Method method = ((MethodSignature)joinPoint.getSignature()).getMethod();

@ -441,7 +441,7 @@ public class MesWorkOrderService implements IMesWorkOrderService {
DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean(organizeCode); DdlPackBean ddlPackBean = DdlPackBean.getDdlPackBean(organizeCode);
DdlPreparedPack.getNumEqualPack(id, "id", ddlPackBean); DdlPreparedPack.getNumEqualPack(id, "id", ddlPackBean);
// DdlPreparedPack.getStringEqualPack(sn, "custSn", ddlPackBean); // DdlPreparedPack.getStringEqualPack(sn, "custSn", ddlPackBean);
productionRecordRao.updateByProperties(new String[]{"modifyUser", "modifyDatetime"}, productionRecordRao.updateByPropertiesNoSync(new String[]{"modifyUser", "modifyDatetime"},
new Object[]{userName, TimeTool.getNowTime(true)},ddlPackBean); new Object[]{userName, TimeTool.getNowTime(true)},ddlPackBean);
} }

Loading…
Cancel
Save