重庆需求变更代码提交

This commit is contained in:
liang.chao 2024-09-25 15:15:06 +08:00
parent 2894862a48
commit 1fd88d7cec
7 changed files with 28 additions and 1 deletions

View File

@ -212,6 +212,9 @@ public class BackApplyInfo extends BaseEntity {
*/ */
private Integer bfNum; private Integer bfNum;
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date backReceiveTime;
@Excel(name = "退料状态" , readConverterExp = "37=待退料审核,38=退料已审核,39=退料核查中,40=退料完成,101 = 退料审核驳回") @Excel(name = "退料状态" , readConverterExp = "37=待退料审核,38=退料已审核,39=退料核查中,40=退料完成,101 = 退料审核驳回")

View File

@ -211,4 +211,6 @@ public interface BackReceiveMapper {
List<BackApplyInfo> backReceiveRecordWebPt(BackApplyInfo record); List<BackApplyInfo> backReceiveRecordWebPt(BackApplyInfo record);
int finishBackCheckDetails(BackApplyInfo record); int finishBackCheckDetails(BackApplyInfo record);
void updateBackReceiveTime(BackApplyInfo record);
} }

View File

@ -267,6 +267,8 @@ public class BackReceiveServiceImpl implements BackReceiveService {
//完成退料的部分更新 back_check_details is_finished=1此部分不支持撤回 //完成退料的部分更新 back_check_details is_finished=1此部分不支持撤回
finishBackCheckDetails(record); finishBackCheckDetails(record);
//更新退料接收时间
updateBackReceiveTime(record);
//库存日志 //库存日志
int postStoreNum = backReceiveMapper.getmaChineByCt(record); int postStoreNum = backReceiveMapper.getmaChineByCt(record);
@ -281,6 +283,10 @@ public class BackReceiveServiceImpl implements BackReceiveService {
return res; return res;
} }
private void updateBackReceiveTime(BackApplyInfo record) {
backReceiveMapper.updateBackReceiveTime(record);
}
private int selectTaskStatus(int taskId) { private int selectTaskStatus(int taskId) {
int taskStatus = backReceiveMapper.selectTaskStatus(taskId); int taskStatus = backReceiveMapper.selectTaskStatus(taskId);
if (taskStatus == 40) { if (taskStatus == 40) {

View File

@ -116,6 +116,17 @@ public class PurchaseMacodeInfo extends BaseEntity
@JsonFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern = "yyyy-MM-dd")
@ApiModelProperty(value = "出厂日期") @ApiModelProperty(value = "出厂日期")
private Date productionTime; private Date productionTime;
@ApiModelProperty(value = "入库时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private Date inputTime;
public Date getInputTime() {
return inputTime;
}
public void setInputTime(Date inputTime) {
this.inputTime = inputTime;
}
/** 到货日期 */ /** 到货日期 */
@ApiModelProperty(value = "到货日期") @ApiModelProperty(value = "到货日期")

View File

@ -586,6 +586,9 @@
<update id="finishBackCheckDetails"> <update id="finishBackCheckDetails">
update back_check_details set is_finished = 1, update_time = now() where parent_id = #{parentId} and type_id = #{typeId} and (is_finished is null or is_finished != 1) update back_check_details set is_finished = 1, update_time = now() where parent_id = #{parentId} and type_id = #{typeId} and (is_finished is null or is_finished != 1)
</update> </update>
<update id="updateBackReceiveTime">
update back_apply_details set back_receive_time = now() where parent_id = #{parentId} and type_id = #{typeId}
</update>
<delete id="deleteCheckDetails"> <delete id="deleteCheckDetails">
delete from back_check_details where parent_id = #{parentId} and type_id = #{typeId} and (is_finished is null or is_finished != 1) delete from back_check_details where parent_id = #{parentId} and type_id = #{typeId} and (is_finished is null or is_finished != 1)
@ -677,6 +680,7 @@
bad.pre_num as preNum, bad.pre_num as preNum,
bad.audit_num as auditNum, bad.audit_num as auditNum,
bad.status as status, bad.status as status,
bad.back_receive_time as backReceiveTime,
CASE WHEN ((IFNULL(sai.num, 0)-IFNULL(aa.back_num,0)) > (bad.audit_num-IFNULL(bb.finished_back_num,0)-IFNULL(aa.back_num,0))) CASE WHEN ((IFNULL(sai.num, 0)-IFNULL(aa.back_num,0)) > (bad.audit_num-IFNULL(bb.finished_back_num,0)-IFNULL(aa.back_num,0)))
THEN (bad.audit_num-IFNULL(bb.finished_back_num,0)-IFNULL(aa.back_num,0)) THEN (bad.audit_num-IFNULL(bb.finished_back_num,0)-IFNULL(aa.back_num,0))
ELSE ELSE

View File

@ -181,7 +181,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
END as inputTime, END as inputTime,
CASE tk.task_status CASE tk.task_status
WHEN 28 THEN WHEN 28 THEN
us.user_name us.nick_name
ELSE ELSE
'' ''
END as inputUser END as inputUser

View File

@ -361,6 +361,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
mm.assets_code as assetsCode, mm.assets_code as assetsCode,
pmi.fix_code as fixCode, pmi.fix_code as fixCode,
pcd.type_id as typeId, pcd.type_id as typeId,
pcd.input_time as inputTime,
pcd.task_id as taskId, pcd.task_id as taskId,
mt.code as specsCode, mt.code as specsCode,
mt.num as num, mt.num as num,