Commit ca24bad2 authored by suhuiguang's avatar suhuiguang

1.设备注销报废初稿代码提交

parent e9f63ae5
package com.yeejoin.amos.boot.module.jg.api.dto; package com.yeejoin.amos.boot.module.jg.api.dto;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yeejoin.amos.boot.biz.common.dto.BaseDto; import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import com.yeejoin.amos.boot.module.jg.api.common.BizCustomDateSerializer;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
...@@ -51,6 +55,8 @@ public class JgScrapCancelDto extends BaseDto { ...@@ -51,6 +55,8 @@ public class JgScrapCancelDto extends BaseDto {
private String createUserId; private String createUserId;
@ApiModelProperty(value = "创建时间") @ApiModelProperty(value = "创建时间")
@JsonFormat(pattern = "yyyy-MM-dd")
@JsonSerialize(using = BizCustomDateSerializer.class)
private Date createDate; private Date createDate;
@ApiModelProperty(value = "流程状态") @ApiModelProperty(value = "流程状态")
......
...@@ -34,7 +34,8 @@ ...@@ -34,7 +34,8 @@
DATE_FORMAT(tjsc.audit_pass_date,'%Y-%m-%d') as auditPassDate, DATE_FORMAT(tjsc.audit_pass_date,'%Y-%m-%d') as auditPassDate,
tjsc.use_unit_name, tjsc.use_unit_name,
tjsc.use_unit_code, tjsc.use_unit_code,
tjsc.use_registration_code tjsc.use_registration_code,
tjsc.equ_list_code
from tzs_jg_scrap_cancel tjsc from tzs_jg_scrap_cancel tjsc
<where> <where>
tjsc.is_delete = 0 tjsc.is_delete = 0
...@@ -58,7 +59,7 @@ ...@@ -58,7 +59,7 @@
</if> </if>
<if test="dto.useRegistrationCode != null and dto.useRegistrationCode != ''"> <if test="dto.useRegistrationCode != null and dto.useRegistrationCode != ''">
AND tjsc."USE_ORG_CODE" like concat('%',#{dto.useRegistrationCode},'%') AND tjsc."use_registration_code" like concat('%',#{dto.useRegistrationCode},'%')
</if> </if>
<if test="roleIds != null and dto.type == 'supervision'"> <if test="roleIds != null and dto.type == 'supervision'">
<foreach collection='roleIds' item='role' open='and (' close=')' separator='or'> <foreach collection='roleIds' item='role' open='and (' close=')' separator='or'>
......
...@@ -136,7 +136,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc ...@@ -136,7 +136,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
Page<JgScrapCancelDto> listPage = this.baseMapper.getListPage(page, sortMap, dto, roleIds, orgCode, currentUserId); Page<JgScrapCancelDto> listPage = this.baseMapper.getListPage(page, sortMap, dto, roleIds, orgCode, currentUserId);
listPage.getRecords().forEach(item -> { listPage.getRecords().forEach(item -> {
if (item.getCancelType() != null) { if (item.getCancelType() != null) {
item.setCancelType(CancelTypeEnum.getNameByType(item.getCancelType())); item.setCancelTypeDesc(CancelTypeEnum.getNameByType(item.getCancelType()));
} }
if (item.getEquListCode() != null) { if (item.getEquListCode() != null) {
item.setEquListName(EquipmentClassifityEnum.getNameByCode(item.getEquListCode())); item.setEquListName(EquipmentClassifityEnum.getNameByCode(item.getEquListCode()));
...@@ -264,7 +264,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc ...@@ -264,7 +264,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
String equListName = EquipmentClassifityEnum.getNameByCode(jsonObject.get("equListCode").toString()); String equListName = EquipmentClassifityEnum.getNameByCode(jsonObject.get("equListCode").toString());
save2HisData(jsonObject, jgScrapCancel.getSequenceNbr().toString()); save2HisData(jsonObject, jgScrapCancel.getSequenceNbr().toString());
JgScrapCancelDto dto = new JgScrapCancelDto(); JgScrapCancelDto dto = new JgScrapCancelDto();
BeanUtil.copyProperties(jgScrapCancel, new JgScrapCancelDto()); BeanUtil.copyProperties(jgScrapCancel, dto);
dto.setEquListName(equListName); dto.setEquListName(equListName);
return dto; return dto;
} }
......
...@@ -236,37 +236,37 @@ ...@@ -236,37 +236,37 @@
{ {
"type": "113-1", "type": "113-1",
"pageType": "draft", "pageType": "draft",
"name": "移装注销", "name": "注销",
"url": "/mixuap?appId=1742358052905971713&id=1737357808040439809&roleIds={roleIds}&userId={userId}&pageType=edit" "url": "/mixuap?appId=1742358052905971713&id=1737357808040439809&roleIds={roleIds}&userId={userId}&pageType=edit"
}, },
{ {
"type": "113-1", "type": "113-1",
"pageType": "look", "pageType": "look",
"name": "移装注销", "name": "注销",
"url": "/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=look" "url": "/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=look"
}, },
{ {
"type": "113-1", "type": "113-1",
"pageType": "edit", "pageType": "edit",
"name": "移装注销", "name": "注销",
"url": "/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=edit" "url": "/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=edit"
}, },
{ {
"type": "113-2", "type": "113-2",
"pageType": "draft", "pageType": "draft",
"name": "报废注销", "name": "报废",
"url": "/mixuap?appId=1742358052905971713&id=1737357808040439809&roleIds={roleIds}&userId={userId}&pageType=edit" "url": "/mixuap?appId=1742358052905971713&id=1737357808040439809&roleIds={roleIds}&userId={userId}&pageType=edit"
}, },
{ {
"type": "113-2", "type": "113-2",
"pageType": "look", "pageType": "look",
"name": "报废注销", "name": "报废",
"url": "/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=look" "url": "/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=look"
}, },
{ {
"type": "113-2", "type": "113-2",
"pageType": "edit", "pageType": "edit",
"name": "报废注销", "name": "报废",
"url": "/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=edit" "url": "/mixuap?appId=1742358052905971713&id=1737357871097606146&roleIds={roleIds}&userId={userId}&pageType=edit"
}, },
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment