Browse Source

装配校验有效期 2022-06-29 sxm

master
[li_she] 4 years ago
parent
commit
a50664ac39
  1. 1
      src/main/java/com/gaotao/modules/auditManagement/entity/AuthGroup.java
  2. 23
      src/main/java/com/gaotao/modules/finishedProduct/service/impl/CRollinfoServiceImpl.java
  3. 4
      src/main/java/com/gaotao/modules/purchaseorder/query/PRDetailQuery.java
  4. 5
      src/main/resources/mapper/auditManagement/AuthGroupMapper.xml
  5. 3
      src/main/resources/mapper/grid/GridTableDefaultDao.xml
  6. 6
      src/main/resources/mapper/purchaseorder/PRDetailMapper.xml

1
src/main/java/com/gaotao/modules/auditManagement/entity/AuthGroup.java

@ -26,5 +26,6 @@ public class AuthGroup {
/** 邮件地址 */ /** 邮件地址 */
private String groupEmailAddress; private String groupEmailAddress;
private String roleDesc;
} }

23
src/main/java/com/gaotao/modules/finishedProduct/service/impl/CRollinfoServiceImpl.java

@ -698,21 +698,38 @@ public class CRollinfoServiceImpl extends ServiceImpl<CRollinfoDao, CRollinfoEnt
} }
} }
} }
// 没有维护过有效期 需要去物料检测有效期
Part part = partService.getPart(cRollInfo.getPartno());
if ("Y".equals(part.getExpiredatecontrolflag())){
// 管控物料有效期 getExpireddate 存在 维护过有效期 // 管控物料有效期 getExpireddate 存在 维护过有效期
if (cRollInfo.getExpireddate()!=null){ if (cRollInfo.getExpireddate()!=null){
if (cRollInfo.getExpireddate().compareTo(new Date())<0){ if (cRollInfo.getExpireddate().compareTo(new Date())<0){
return R.error("该卷已超过有效期"); return R.error("该卷已超过有效期");
} }
}else { }else {
// 没有维护过有效期 需要去无物料检测有效期
Part part = partService.getPart(cRollInfo.getPartno());
if ("Y".equals(part.getExpiredatecontrolflag())){
Date expDate = DateUtils.addDateDays(cRollInfo.getRolldate(), part.getToexpiredays().intValue()); Date expDate = DateUtils.addDateDays(cRollInfo.getRolldate(), part.getToexpiredays().intValue());
if (expDate.compareTo(new Date())<0){ if (expDate.compareTo(new Date())<0){
return R.error("该卷已超过有效期"); return R.error("该卷已超过有效期");
} }
} }
} }
// 管控物料有效期 getExpireddate 存在 维护过有效期
// if (cRollInfo.getExpireddate()!=null){
// if (cRollInfo.getExpireddate().compareTo(new Date())<0){
// return R.error("该卷已超过有效期");
// }
// }
// else {
// // 没有维护过有效期 需要去无物料检测有效期
// Part part = partService.getPart(cRollInfo.getPartno());
// if ("Y".equals(part.getExpiredatecontrolflag())){
// Date expDate = DateUtils.addDateDays(cRollInfo.getRolldate(), part.getToexpiredays().intValue());
// if (expDate.compareTo(new Date())<0){
// return R.error("该卷已超过有效期");
// }
// }
// }
if (rollOutboundControl(cRollInfo)) { if (rollOutboundControl(cRollInfo)) {
return R.error("该卷入库时间较新,请先使用较晚的卷"); return R.error("该卷入库时间较新,请先使用较晚的卷");
} }

4
src/main/java/com/gaotao/modules/purchaseorder/query/PRDetailQuery.java

@ -27,4 +27,8 @@ public class PRDetailQuery extends PRDetail {
private List<SysOssEntity> sysOssEntityList; private List<SysOssEntity> sysOssEntityList;
private String fileType; private String fileType;
private String startDate;
private String endDate;
} }

5
src/main/resources/mapper/auditManagement/AuthGroupMapper.xml

@ -11,6 +11,7 @@
<result column="site" jdbcType="VARCHAR" property="site" /> <result column="site" jdbcType="VARCHAR" property="site" />
<result column="active" jdbcType="CHAR" property="active" /> <result column="active" jdbcType="CHAR" property="active" />
<result column="group_email_address" jdbcType="VARCHAR" property="groupEmailAddress" /> <result column="group_email_address" jdbcType="VARCHAR" property="groupEmailAddress" />
<result column="role_desc" jdbcType="VARCHAR" property="roleDesc" />
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!--@mbg.generated--> <!--@mbg.generated-->
@ -77,9 +78,11 @@
</update> </update>
<select id="getAuthGroupList" resultMap="BaseResultMap"> <select id="getAuthGroupList" resultMap="BaseResultMap">
<!--@mbg.generated--> <!--@mbg.generated-->
select A.id,A.record_type_db,A.group_id,A.group_desc,A.site,A.group_email_address
select b.role_desc,A.id,A.record_type_db,A.group_id,A.group_desc,A.site,A.group_email_address
,(case A.active when 'Y' then '启用' else '禁用' end) as active ,(case A.active when 'Y' then '启用' else '禁用' end) as active
from auth_group A from auth_group A
LEFT JOIN business_role_list b ON
A.record_type_db = b.role_item_no
<where> <where>
<if test="site != null and site != ''"> <if test="site != null and site != ''">
and site = #{site,jdbcType=VARCHAR} and site = #{site,jdbcType=VARCHAR}

3
src/main/resources/mapper/grid/GridTableDefaultDao.xml

@ -26,7 +26,8 @@
gtd.status, gtd.status,
gtd.table_name, gtd.table_name,
gtd.function_id, gtd.function_id,
gtd.column_type
gtd.column_type,
gtd.align
FROM grid_table_default gtd FROM grid_table_default gtd
LEFT JOIN sys_object_language_others gtl LEFT JOIN sys_object_language_others gtl
ON (gtd.table_id = gtl.table_id AND gtd.column_prop = gtl.object_id ON (gtd.table_id = gtl.table_id AND gtd.column_prop = gtl.object_id

6
src/main/resources/mapper/purchaseorder/PRDetailMapper.xml

@ -84,6 +84,12 @@
<if test="param2.approveresult != null and param2.approveresult != ''"> <if test="param2.approveresult != null and param2.approveresult != ''">
and B.ApproveResult = #{param2.approveresult,jdbcType=VARCHAR} and B.ApproveResult = #{param2.approveresult,jdbcType=VARCHAR}
</if> </if>
<if test="param2.startDate != null and param2.startDate != ''">
and B.EnterDate <![CDATA[ >= ]]> #{param2.startDate}
</if>
<if test="param2.endDate != null and param2.endDate != ''">
and B.EnterDate <![CDATA[ <=]]> #{param2.endDate}
</if>
</where> </where>
order by A.RequisitionNo desc order by A.RequisitionNo desc
</select> </select>

Loading…
Cancel
Save