计划模块(工单管理显示优化)

highway
wws 1 year ago
parent 0524c17e13
commit 40ecab6485

@ -23,7 +23,7 @@ public class ProOrderWorkorder extends TreeEntity {
private String workorderId; private String workorderId;
/** 工单编码 */ /** 工单编码 */
@Excel(name = "子工单编") @Excel(name = "子工单编")
private String workorderCode; private String workorderCode;
/** 工单名称 */ /** 工单名称 */
@ -40,7 +40,7 @@ public class ProOrderWorkorder extends TreeEntity {
private String productId; private String productId;
/** 产品编号 */ /** 产品编号 */
@Excel(name = "产品编") @Excel(name = "产品编")
private String productCode; private String productCode;
/** 产品名称 */ /** 产品名称 */
@ -66,6 +66,17 @@ public class ProOrderWorkorder extends TreeEntity {
@Excel(name = "工艺编码") @Excel(name = "工艺编码")
private String routeCode; private String routeCode;
// 工艺名称
private String routeName;
public String getRouteName() {
return routeName;
}
public void setRouteName(String routeName) {
this.routeName = routeName;
}
/** 产线编码 */ /** 产线编码 */
@Excel(name = "产线") @Excel(name = "产线")
private String prodLineCode; private String prodLineCode;
@ -478,6 +489,7 @@ public class ProOrderWorkorder extends TreeEntity {
.append("materialName",getMaterialName()) .append("materialName",getMaterialName())
.append("planTime",getPlanTime()) .append("planTime",getPlanTime())
.append("bucketName",getBucketName()) .append("bucketName",getBucketName())
.append("routeName",getRouteName())
.toString(); .toString();
} }
} }

@ -134,5 +134,12 @@ public interface ProOrderWorkorderMapper {
List<ProOrderWorkorder> selectProOrderWorkerderByWorkerIds(String[] ids); List<ProOrderWorkorder> selectProOrderWorkerderByWorkerIds(String[] ids);
public void updateWorkOrderCodeSap(ProOrderWorkorder oworkSap); public void updateWorkOrderCodeSap(ProOrderWorkorder oworkSap);
/**
* code
* @param routeCode
* @return
*/
String selectRouteNameByRouteCode(String routeCode);
} }

@ -78,6 +78,8 @@ public class ProOrderWorkorderServiceImpl implements IProOrderWorkorderService {
for (ProOrderWorkorder workorder : workorderList) { for (ProOrderWorkorder workorder : workorderList) {
// 通过设备code查询出机型名称 // 通过设备code查询出机型名称
workorder.setProdLineCode(proOrderMapper.selectProdLineName(workorder.getProdLineCode())); workorder.setProdLineCode(proOrderMapper.selectProdLineName(workorder.getProdLineCode()));
// 通过工艺编码code查询出机型名称
workorder.setRouteName(proOrderWorkorderMapper.selectRouteNameByRouteCode(workorder.getRouteCode()));
} }
return workorderList; return workorderList;
} }

@ -314,6 +314,11 @@
#{item.cumc} #{item.cumc}
</foreach> </foreach>
</select> </select>
<select id="selectRouteNameByRouteCode" resultType="java.lang.String">
select route_name from pro_route where route_code = #{routeCode}
</select>
<insert id="createPrepareDetails"> <insert id="createPrepareDetails">
insert into mes_prepare_detail insert into mes_prepare_detail
( (

Loading…
Cancel
Save