领料接口优化

This commit is contained in:
sxu 2024-11-14 12:10:46 +08:00
parent 1bcad2f7ea
commit 97d555617b
4 changed files with 10 additions and 17 deletions

View File

@ -10,12 +10,11 @@ import lombok.Getter;
@Getter @Getter
public enum LeaseTaskStatusEnum { public enum LeaseTaskStatusEnum {
LEASE_TASK_TO_PUBLISHED(0, "领料任务--未发布"), LEASE_TASK_TO_PUBLISHED(1, "待发布"),
LEASE_TASK_PUBLISHED(1, "领料任务--已发布"), LEASE_TASK_TO_AUDIT(2, "待审核"),
LEASE_TASK_TO_AUDIT(2, "领料任务--待审核"), LEASE_TASK_TO_STOCK_OUT(3, "待出库"),
LEASE_TASK_TO_STOCK_OUT(3, "领料任务--待出库"), LEASE_TASK_IN_STOCK_OUT(4, "出库进行中"),
LEASE_TASK_IN_STOCK_OUT(4, "领料任务--进行中"), LEASE_TASK_END_STOCK_OUT(5, "出库已完成");
LEASE_TASK_END_STOCK_OUT(5, "领料任务--已出库完成");
private final Integer status; private final Integer status;
private final String statusName; private final String statusName;

View File

@ -107,9 +107,9 @@ public class LeaseApplyInfo extends BaseEntity {
private Long companyId; private Long companyId;
/** 1机具分公司审核通过2调试分公司审核通过3机具分公司审核驳回4调试分公司审核驳回5出库进行中5出库完成 */ /** 1机具分公司审核通过2调试分公司审核通过3机具分公司审核驳回4调试分公司审核驳回5出库进行中5出库完成 */
@Excel(name = "1机具分公司审核通过2调试分公司审核通过3机具分公司审核驳回4调试分公司审核驳回5出库进行中5出库完成") // @Excel(name = "1机具分公司审核通过2调试分公司审核通过3机具分公司审核驳回4调试分公司审核驳回5出库进行中5出库完成")
@ApiModelProperty(value = "1机具分公司审核通过2调试分公司审核通过3机具分公司审核驳回4调试分公司审核驳回5出库进行中5出库完成") // @ApiModelProperty(value = "1机具分公司审核通过2调试分公司审核通过3机具分公司审核驳回4调试分公司审核驳回5出库进行中5出库完成")
private String status; // private String status;
/** $column.columnComment */ /** $column.columnComment */
@Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()") @Excel(name = "${comment}", readConverterExp = "$column.readConverterExp()")
@ -158,7 +158,7 @@ public class LeaseApplyInfo extends BaseEntity {
private Integer taskType; private Integer taskType;
/** 任务状态(定义数据字典) */ /** 任务状态(定义数据字典) */
@Excel(name = "任务状态(定义数据字典)") @Excel(name = "任务状态")
@ApiModelProperty(value = "任务状态(定义数据字典)") @ApiModelProperty(value = "任务状态(定义数据字典)")
private Integer taskStatus; private Integer taskStatus;

View File

@ -153,9 +153,7 @@ public class LeaseApplyInfoServiceImpl implements ILeaseApplyInfoService {
if (leaseApplyInfo.getTaskId() == null) { if (leaseApplyInfo.getTaskId() == null) {
return AjaxResult.error("任务ID为空,请完善后重新发布!"); return AjaxResult.error("任务ID为空,请完善后重新发布!");
} }
leaseApplyInfo.setUpdateTime(DateUtils.getNowDate()); leaseApplyInfo.setUpdateTime(DateUtils.getNowDate());
leaseApplyInfo.setStatus(String.valueOf(LeaseTaskStatusEnum.LEASE_TASK_TO_STOCK_OUT.getStatus()));
try { try {
int result = leaseApplyInfoMapper.updateLeaseApplyInfo(leaseApplyInfo); int result = leaseApplyInfoMapper.updateLeaseApplyInfo(leaseApplyInfo);
if (result > 0) { if (result > 0) {

View File

@ -25,7 +25,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="updateTime" column="update_time" /> <result property="updateTime" column="update_time" />
<result property="remark" column="remark" /> <result property="remark" column="remark" />
<result property="companyId" column="company_id" /> <result property="companyId" column="company_id" />
<result property="status" column="status" />
<result property="directId" column="direct_id" /> <result property="directId" column="direct_id" />
<result property="leaseType" column="lease_type" /> <result property="leaseType" column="lease_type" />
<result property="estimateLeaseTime" column="estimate_lease_time" /> <result property="estimateLeaseTime" column="estimate_lease_time" />
@ -43,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
lai.company_audit_time, lai.company_audit_remark, lai.dept_audit_by, lai.dept_audit_time, lai.company_audit_time, lai.company_audit_remark, lai.dept_audit_by, lai.dept_audit_time,
lai.dept_audit_remark, lai.direct_audit_by, lai.direct_audit_time, lai.direct_audit_remark, lai.dept_audit_remark, lai.direct_audit_by, lai.direct_audit_time, lai.direct_audit_remark,
lai.create_by, lai.create_time, lai.update_by, lai.update_time, lai.remark, lai.company_id, lai.create_by, lai.create_time, lai.update_by, lai.update_time, lai.remark, lai.company_id,
lai.status, lai.direct_id, lai.lease_type, lai.estimate_lease_time, lai.cost_bearing_party, lai.direct_id, lai.lease_type, lai.estimate_lease_time, lai.cost_bearing_party,
bai.unit_id,bai.project_id,bu.unit_name, bp.pro_name, bai.agreement_code, tt.task_status as taskStatus, bai.unit_id,bai.project_id,bu.unit_name, bp.pro_name, bai.agreement_code, tt.task_status as taskStatus,
IFNULL(sum(lad.pre_num),0) as preCountNum, IFNULL(sum(lad.pre_num),0) as preCountNum,
IFNULL(sum(lad.al_num),0) as alNum IFNULL(sum(lad.al_num),0) as alNum
@ -116,7 +115,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">update_time,</if> <if test="updateTime != null">update_time,</if>
<if test="remark != null">remark,</if> <if test="remark != null">remark,</if>
<if test="companyId != null">company_id,</if> <if test="companyId != null">company_id,</if>
<if test="status != null">status,</if>
<if test="directId != null">direct_id,</if> <if test="directId != null">direct_id,</if>
<if test="leaseType != null">lease_type,</if> <if test="leaseType != null">lease_type,</if>
<if test="estimateLeaseTime != null">estimate_lease_time,</if> <if test="estimateLeaseTime != null">estimate_lease_time,</if>
@ -143,7 +141,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">#{updateTime},</if> <if test="updateTime != null">#{updateTime},</if>
<if test="remark != null">#{remark},</if> <if test="remark != null">#{remark},</if>
<if test="companyId != null">#{companyId},</if> <if test="companyId != null">#{companyId},</if>
<if test="status != null">#{status},</if>
<if test="directId != null">#{directId},</if> <if test="directId != null">#{directId},</if>
<if test="leaseType != null">#{leaseType},</if> <if test="leaseType != null">#{leaseType},</if>
<if test="estimateLeaseTime != null">#{estimateLeaseTime},</if> <if test="estimateLeaseTime != null">#{estimateLeaseTime},</if>
@ -174,7 +171,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateTime != null">update_time = #{updateTime},</if> <if test="updateTime != null">update_time = #{updateTime},</if>
<if test="remark != null">remark = #{remark},</if> <if test="remark != null">remark = #{remark},</if>
<if test="companyId != null">company_id = #{companyId},</if> <if test="companyId != null">company_id = #{companyId},</if>
<if test="status != null">status = #{status},</if>
<if test="directId != null">direct_id = #{directId},</if> <if test="directId != null">direct_id = #{directId},</if>
<if test="leaseType != null">lease_type = #{leaseType},</if> <if test="leaseType != null">lease_type = #{leaseType},</if>
<if test="estimateLeaseTime != null">estimate_lease_time = #{estimateLeaseTime},</if> <if test="estimateLeaseTime != null">estimate_lease_time = #{estimateLeaseTime},</if>