后台修试管理代码提交
This commit is contained in:
parent
d7b78162ec
commit
11bdd0a771
|
|
@ -47,7 +47,7 @@ public class RepairController extends BaseController {
|
|||
* 导出维修任务列表
|
||||
*/
|
||||
@RequiresPermissions("domain:details:export")
|
||||
@Log(title = "维修任务列表", businessType = BusinessType.EXPORT)
|
||||
@Log(title = "导出维修任务列表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairTask bean)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -94,11 +94,9 @@ public class RepairServiceImpl implements RepairService {
|
|||
}
|
||||
}
|
||||
if (partList != null && partList.size()>0){
|
||||
for (RepairPartDetails partDetails : partList){
|
||||
if (partDetails.getPartId() == null && bean.getRepairType().equals("1")){
|
||||
throw new ServiceException("请选择配件");
|
||||
}
|
||||
if (bean.getRepairType().equals("1")){
|
||||
for (RepairPartDetails partDetails : partList){
|
||||
if(partDetails.getPartId() != null){
|
||||
if (partDetails.getPartCost() == null || partDetails.getPartCost().isEmpty()){
|
||||
partDetails.setPartCost("0");
|
||||
}
|
||||
|
|
@ -110,6 +108,7 @@ public class RepairServiceImpl implements RepairService {
|
|||
mapper.addPart(partDetails);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (bean.getRepairType().equals("2")){
|
||||
bean.setPartName(partList.get(0).getPartName());
|
||||
bean.setPartType(partList.get(0).getPartType());
|
||||
|
|
@ -189,7 +188,6 @@ public class RepairServiceImpl implements RepairService {
|
|||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public int completeRepair(ArrayList<Long> ids) {
|
||||
LoginUser loginUser = SecurityUtils.getLoginUser();
|
||||
|
|
@ -201,7 +199,4 @@ public class RepairServiceImpl implements RepairService {
|
|||
return mapper.selectUserList();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class RepairAuditDetailsController extends BaseController
|
|||
* 导出修试审核任务列表
|
||||
*/
|
||||
@RequiresPermissions("domain:details:export")
|
||||
@Log(title = "修试审核任务列表", businessType = BusinessType.EXPORT)
|
||||
@Log(title = "导出修试审核任务列表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, RepairAuditDetails bean)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class ScrapApplyDetailsController extends BaseController
|
|||
* 导出报废任务列表
|
||||
*/
|
||||
@RequiresPermissions("domain:details:export")
|
||||
@Log(title = "报废任务列表", businessType = BusinessType.EXPORT)
|
||||
@Log(title = "导出报废任务列表", businessType = BusinessType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public void export(HttpServletResponse response, ScrapApplyDetails bean)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -238,7 +238,6 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
scrapApplyDetailsMapper.insertScrapApplyDetails(scrapApplyDetails);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
// 修饰审核通过时改修任务为已通过审核
|
||||
task1.setTaskStatus(47);
|
||||
|
|
@ -256,7 +255,6 @@ public class RepairAuditDetailsServiceImpl implements IRepairAuditDetailsService
|
|||
taskMapper.updateTmTask(tmTask);
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,9 +34,8 @@ public class RepairAuditDetailsVO {
|
|||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "任务创建时间",sort = 5)
|
||||
private Date createTime;
|
||||
private String createTime;
|
||||
|
||||
// 维修单号
|
||||
@Excel(name = "维修单号",sort = 6)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,10 @@
|
|||
package com.bonus.sgzb.material.vo;
|
||||
|
||||
import com.bonus.sgzb.common.core.annotation.Excel;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class ScrapApplyDetailsVO {
|
||||
|
|
@ -34,9 +32,8 @@ public class ScrapApplyDetailsVO {
|
|||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@Excel(name = "任务创建时间",sort = 5)
|
||||
private Date createTime;
|
||||
private String createTime;
|
||||
|
||||
// 维修单号
|
||||
@Excel(name = "维修单号",sort = 6)
|
||||
|
|
|
|||
Loading…
Reference in New Issue