bug修改
This commit is contained in:
parent
02d87beddb
commit
2ee6e711c1
|
|
@ -123,6 +123,7 @@ public class BackReceiveController extends BaseController {
|
||||||
* 编码退料--管理方式为0的
|
* 编码退料--管理方式为0的
|
||||||
*
|
*
|
||||||
* @param record 查询条件
|
* @param record 查询条件
|
||||||
|
*
|
||||||
* @return AjaxResult对象
|
* @return AjaxResult对象
|
||||||
*/
|
*/
|
||||||
@Log(title = "退料接收-编码退料", businessType = BusinessType.INSERT)
|
@Log(title = "退料接收-编码退料", businessType = BusinessType.INSERT)
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Description: 任务表tm_task
|
* Description: 任务表tm_task
|
||||||
|
*
|
||||||
* @Author 阮世耀
|
* @Author 阮世耀
|
||||||
* @Create 2023/12/13 15:14
|
* @Create 2023/12/13 15:14
|
||||||
* @Version 1.0
|
* @Version 1.0
|
||||||
|
|
@ -242,7 +243,8 @@ public class TmTask implements Serializable {
|
||||||
@ApiModelProperty(value = "分管审批备注")
|
@ApiModelProperty(value = "分管审批备注")
|
||||||
private String deptAuditRemark;
|
private String deptAuditRemark;
|
||||||
|
|
||||||
@ApiModelProperty(value="领用类型:0 短期租赁 1长期领用")
|
@ApiModelProperty(value = "领用类型:0 工程租赁 1长期领用")
|
||||||
|
@Excel(name = "领料类型", readConverterExp = "0=工程租赁,1=长期租赁")
|
||||||
private String leaseType;
|
private String leaseType;
|
||||||
|
|
||||||
private String userId;
|
private String userId;
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@ public class TmTaskVo implements Serializable {
|
||||||
* 领用类型
|
* 领用类型
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty(value = "领料类型")
|
@ApiModelProperty(value = "领料类型")
|
||||||
@Excel(name = "领料类型", sort = 12, readConverterExp = "0=短期租赁,1=长期租赁")
|
@Excel(name = "领料类型", sort = 12, readConverterExp = "0=工程租赁,1=长期租赁")
|
||||||
private String leaseType;
|
private String leaseType;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -58,6 +58,11 @@ public class BackApplyController extends BaseController {
|
||||||
return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, list));
|
return AjaxResult.success(ListPagingUtil.paging(pageIndex, pageSize, list));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation(value = "退料申请获取当前类型在用量")
|
||||||
|
@GetMapping("/getUseNumByTypeId")
|
||||||
|
public AjaxResult getUseNumByTypeId(String typeId) {
|
||||||
|
return AjaxResult.success(backApplyService.getUseNumByTypeId(typeId));
|
||||||
|
}
|
||||||
|
|
||||||
@ApiOperation(value = "在用设备类型树")
|
@ApiOperation(value = "在用设备类型树")
|
||||||
@PostMapping("/getUseTypeTree")
|
@PostMapping("/getUseTypeTree")
|
||||||
|
|
|
||||||
|
|
@ -131,4 +131,6 @@ public interface BackApplyMapper {
|
||||||
int delApply(BackApplyInfo bean);
|
int delApply(BackApplyInfo bean);
|
||||||
|
|
||||||
List<BackApplyInfo> selectIdByTaskId(Integer taskId);
|
List<BackApplyInfo> selectIdByTaskId(Integer taskId);
|
||||||
|
|
||||||
|
int getUseNumByTypeId(String typeId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -119,4 +119,6 @@ public interface BackApplyService {
|
||||||
int delApply(BackApplyInfo bean);
|
int delApply(BackApplyInfo bean);
|
||||||
|
|
||||||
List<BackApplyInfo> selectIdByTaskId(Integer taskId);
|
List<BackApplyInfo> selectIdByTaskId(Integer taskId);
|
||||||
|
|
||||||
|
int getUseNumByTypeId(String typeId);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -373,4 +373,9 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
return backApplyMapper.selectIdByTaskId(taskId);
|
return backApplyMapper.selectIdByTaskId(taskId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public int getUseNumByTypeId(String typeId) {
|
||||||
|
return backApplyMapper.getUseNumByTypeId(typeId);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -811,5 +811,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="selectIdByTaskId" resultType="com.bonus.sgzb.material.domain.BackApplyInfo">
|
<select id="selectIdByTaskId" resultType="com.bonus.sgzb.material.domain.BackApplyInfo">
|
||||||
select * from back_apply_info where task_id = #{taskId}
|
select * from back_apply_info where task_id = #{taskId}
|
||||||
</select>
|
</select>
|
||||||
|
<select id="getUseNumByTypeId" resultType="java.lang.Integer">
|
||||||
|
select count(*) as useNum from ma_machine where type_id = #{typeId} and ma_status in (16,84)
|
||||||
|
</select>
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
Loading…
Reference in New Issue