fix(ebom): 一些优化
This commit is contained in:
parent
61d689d7a3
commit
870d612154
|
|
@ -143,8 +143,6 @@ public class CheckEBomException {
|
||||||
vo.setExceptionStatus(EBomExceptionStatusEnum.OK.getValue());
|
vo.setExceptionStatus(EBomExceptionStatusEnum.OK.getValue());
|
||||||
} else if (!StrUtil.equals(vo.getMaterialUnit(), vo.getMaterialOriginalUnit()) && StrUtil.isBlank(vo.getExceptionTag())) {
|
} else if (!StrUtil.equals(vo.getMaterialUnit(), vo.getMaterialOriginalUnit()) && StrUtil.isBlank(vo.getExceptionTag())) {
|
||||||
vo.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_16.getValue());
|
vo.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_16.getValue());
|
||||||
} else if (EBomConstant.PROJECT_TYPE_T.equalsIgnoreCase(vo.getProjectType()) && StrUtil.isBlank(vo.getMaterialDesc())) {
|
|
||||||
vo.setExceptionStatus(EBomExceptionStatusEnum.EXCEPT_NO_17.getValue());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -399,13 +399,14 @@
|
||||||
AND created_by = #{userCode}
|
AND created_by = #{userCode}
|
||||||
</if>
|
</if>
|
||||||
<if test="userJob==0">
|
<if test="userJob==0">
|
||||||
AND status IN (1,3) AND (user_root_is=1 OR root_is_for_wait_review=1) AND created_by=#{userCode}
|
AND status IN (1,3) AND (root_is=1 OR user_root_is=1 OR root_is_for_wait_review=1) AND
|
||||||
|
created_by=#{userCode}
|
||||||
</if>
|
</if>
|
||||||
<if test="userJob==1 and query.dataType==0">
|
<if test="userJob==1 and query.dataType==0">
|
||||||
AND root_is=1 AND status=2
|
AND (root_is=1 OR user_root_is=1) AND status=2
|
||||||
</if>
|
</if>
|
||||||
<if test="userJob==1 and query.dataType==1">
|
<if test="userJob==1 and query.dataType==1">
|
||||||
AND root_is=1 AND status=4
|
AND (root_is=1 OR user_root_is=1) AND status=4
|
||||||
</if>
|
</if>
|
||||||
<if test="query.deviseName!=null and query.deviseName!=''">
|
<if test="query.deviseName!=null and query.deviseName!=''">
|
||||||
AND devise_name=#{query.deviseName}
|
AND devise_name=#{query.deviseName}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue