Commit f065b2d6 by wuwenlong

派工状态bugfix

parent eceb8b93
...@@ -36,7 +36,7 @@ public class ServiceHGZL002 extends ServiceBase { ...@@ -36,7 +36,7 @@ public class ServiceHGZL002 extends ServiceBase {
@OperationLogAnnotation(operModul = "工序质检单", operType = "查询", operDesc = "初始化查询") @OperationLogAnnotation(operModul = "工序质检单", operType = "查询", operDesc = "初始化查询")
public EiInfo initLoad(EiInfo inInfo) { public EiInfo initLoad(EiInfo inInfo) {
try { try {
customQuery(inInfo); inInfo = customQuery(inInfo);
EiInfoUtils.addBlock(inInfo,"userBlockId", UserSessionUtils.getUser(), User.class); EiInfoUtils.addBlock(inInfo,"userBlockId", UserSessionUtils.getUser(), User.class);
} catch (Exception e) { } catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "初始化失败"); LogUtils.setDetailMsg(inInfo, e, "初始化失败");
...@@ -44,7 +44,7 @@ public class ServiceHGZL002 extends ServiceBase { ...@@ -44,7 +44,7 @@ public class ServiceHGZL002 extends ServiceBase {
return inInfo; return inInfo;
} }
private void customQuery(EiInfo inInfo){ private EiInfo customQuery(EiInfo inInfo){
Long taskId = MapUtils.getLong(EiInfoUtils.getFirstRow(inInfo),HGSC008.FIELD_task_id); Long taskId = MapUtils.getLong(EiInfoUtils.getFirstRow(inInfo),HGSC008.FIELD_task_id);
if(Objects.nonNull(taskId)&&taskId>0){ if(Objects.nonNull(taskId)&&taskId>0){
List<HGSC008> hgsc008s = HGSCTools.THGSC008.getByTaskId(taskId); List<HGSC008> hgsc008s = HGSCTools.THGSC008.getByTaskId(taskId);
...@@ -58,6 +58,7 @@ public class ServiceHGZL002 extends ServiceBase { ...@@ -58,6 +58,7 @@ public class ServiceHGZL002 extends ServiceBase {
}else{ }else{
inInfo = super.query(inInfo, HGZL002.QUERY, new HGZL002()); inInfo = super.query(inInfo, HGZL002.QUERY, new HGZL002());
} }
return inInfo
} }
/** /**
...@@ -70,7 +71,7 @@ public class ServiceHGZL002 extends ServiceBase { ...@@ -70,7 +71,7 @@ public class ServiceHGZL002 extends ServiceBase {
@OperationLogAnnotation(operModul = "工序质检单", operType = "查询", operDesc = "查询") @OperationLogAnnotation(operModul = "工序质检单", operType = "查询", operDesc = "查询")
public EiInfo query(EiInfo inInfo) { public EiInfo query(EiInfo inInfo) {
try { try {
customQuery(inInfo); inInfo = customQuery(inInfo);
} catch (Exception e) { } catch (Exception e) {
LogUtils.setDetailMsg(inInfo, e, "查询失败"); LogUtils.setDetailMsg(inInfo, e, "查询失败");
} }
......
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