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. 35
      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. 35
      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 roleDesc;
}

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

@ -698,21 +698,38 @@ public class CRollinfoServiceImpl extends ServiceImpl<CRollinfoDao, CRollinfoEnt
}
}
}
// 管控物料有效期 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())){
// 没有维护过有效期 需要去物料检测有效期
Part part = partService.getPart(cRollInfo.getPartno());
if ("Y".equals(part.getExpiredatecontrolflag())){
// 管控物料有效期 getExpireddate 存在 维护过有效期
if (cRollInfo.getExpireddate()!=null){
if (cRollInfo.getExpireddate().compareTo(new Date())<0){
return R.error("该卷已超过有效期");
}
}else {
Date expDate = DateUtils.addDateDays(cRollInfo.getRolldate(), part.getToexpiredays().intValue());
if (expDate.compareTo(new Date())<0){
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)) {
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 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="active" jdbcType="CHAR" property="active" />
<result column="group_email_address" jdbcType="VARCHAR" property="groupEmailAddress" />
<result column="role_desc" jdbcType="VARCHAR" property="roleDesc" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
@ -77,9 +78,11 @@
</update>
<select id="getAuthGroupList" resultMap="BaseResultMap">
<!--@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
from auth_group A
LEFT JOIN business_role_list b ON
A.record_type_db = b.role_item_no
<where>
<if test="site != null and site != ''">
and site = #{site,jdbcType=VARCHAR}

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

@ -15,34 +15,35 @@
<select id="getTableDefaultListLanguage" resultType="com.gaotao.modules.grid.entity.GridTableDefault"
parameterType="com.gaotao.modules.grid.query.GridTableDefaultQuery">
SELECT gtd.table_id,
gtd.column_prop,
ISNULL(gtl.language_value, gtd.column_label) AS column_label,
gtd.column_hidden,
gtd.column_image,
gtd.column_sortable,
gtd.column_width,
gtd.fixed,
gtd.sort_lv,
gtd.status,
gtd.table_name,
gtd.function_id,
gtd.column_type
gtd.column_prop,
ISNULL(gtl.language_value, gtd.column_label) AS column_label,
gtd.column_hidden,
gtd.column_image,
gtd.column_sortable,
gtd.column_width,
gtd.fixed,
gtd.sort_lv,
gtd.status,
gtd.table_name,
gtd.function_id,
gtd.column_type,
gtd.align
FROM grid_table_default gtd
LEFT JOIN sys_object_language_others gtl
ON (gtd.table_id = gtl.table_id AND gtd.column_prop = gtl.object_id
AND gtd.function_id = gtl.function_id )
LEFT JOIN sys_object_language_others gtl
ON (gtd.table_id = gtl.table_id AND gtd.column_prop = gtl.object_id
AND gtd.function_id = gtl.function_id )
<where>
gtl.object_type='table' AND gtl.language_code = #{languageCode}
<if test="tableId != null and tableId != ''">
and gtd.table_id = #{tableId,jdbcType=VARCHAR}
and gtd.table_id = #{tableId,jdbcType=VARCHAR}
</if>
<if test="objectType != null and objectType != ''">
and gtl.object_type = #{objectType,jdbcType=VARCHAR}
</if>
<if test="status != null and status != ''">
and gtd.status = #{status,jdbcType=BOOLEAN}
and gtd.status = #{status,jdbcType=BOOLEAN}
</if>
<if test="functionId != null and functionId != ''">
and gtd.function_id = #{functionId,jdbcType=VARCHAR}

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

@ -84,6 +84,12 @@
<if test="param2.approveresult != null and param2.approveresult != ''">
and B.ApproveResult = #{param2.approveresult,jdbcType=VARCHAR}
</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>
order by A.RequisitionNo desc
</select>

Loading…
Cancel
Save