|
|
@@ -2,7 +2,6 @@ package com.jeesite.modules.mes.entity;
|
|
|
|
|
|
import com.jeesite.common.entity.DataEntity;
|
|
|
import com.jeesite.common.mybatis.annotation.Column;
|
|
|
-import com.jeesite.common.mybatis.annotation.JoinTable;
|
|
|
import com.jeesite.common.mybatis.annotation.Table;
|
|
|
import com.jeesite.common.mybatis.mapper.query.QueryType;
|
|
|
|
|
|
@@ -40,13 +39,9 @@ import javax.validation.constraints.Size;
|
|
|
@Column(name="is_rework", attrName="isRework", label="是否可以返修"),
|
|
|
@Column(name="remark", attrName="remark", label="备注"),
|
|
|
},
|
|
|
- joinTable = {
|
|
|
- @JoinTable(type = JoinTable.Type.LEFT_JOIN, entity = MesLineProcess.class, attrName = "this",
|
|
|
- alias = "b", on = "b.oprno = a.oprno",
|
|
|
- columns = {
|
|
|
- @Column(name = "title", attrName = "oprnoName", label = "工位名称")
|
|
|
- })
|
|
|
- },
|
|
|
+ // 注意:不要关联 mes_line_process,同一 oprno 在多个产线下都有工位记录,
|
|
|
+ // LEFT JOIN 会把一条黑白名单放大成多行(列表重复、删除时一次消失多条)。
|
|
|
+ // 如需展示工位名称,请在 Service/Controller 中单独查询回填。
|
|
|
orderBy="a.update_date DESC"
|
|
|
)
|
|
|
public class MesRepairItems extends DataEntity<MesRepairItems> {
|