| | |
| | | |
| | | import com.aps.common.core.annotation.Excel; |
| | | import com.aps.common.core.web.domain.BaseEntity; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import com.fasterxml.jackson.annotation.JsonProperty; |
| | | import org.apache.commons.lang3.builder.ToStringBuilder; |
| | | import org.apache.commons.lang3.builder.ToStringStyle; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 工单同步对象 aps_work_order_job |
| | |
| | | @Excel(name = "下一工序名称") |
| | | private String nextOpName; |
| | | |
| | | public void setId(Long id) |
| | | /** |
| | | * 低阶码 |
| | | */ |
| | | private String lowOrderCode; |
| | | |
| | | /** 工单创建时间 */ |
| | | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") |
| | | @Excel(name = "工单创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss") |
| | | private Date orderCreateTime; |
| | | |
| | | public String getLowOrderCode() { |
| | | return lowOrderCode; |
| | | } |
| | | |
| | | public void setLowOrderCode(String lowOrderCode) { |
| | | this.lowOrderCode = lowOrderCode; |
| | | } |
| | | |
| | | public Date getOrderCreateTime() { |
| | | return orderCreateTime; |
| | | } |
| | | |
| | | public void setOrderCreateTime(Date orderCreateTime) { |
| | | this.orderCreateTime = orderCreateTime; |
| | | } |
| | | |
| | | public void setId(Long id) |
| | | { |
| | | this.id = id; |
| | | } |
| | |
| | | <result property="stdOp" column="std_op" /> |
| | | <result property="opStatus" column="op_status" /> |
| | | <result property="nextOpName" column="next_op_name" /> |
| | | <result property="lowOrderCode" column="low_order_code" /> |
| | | <result property="orderCreateTime" column="order_create_time" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectApsWorkOrderJobVo"> |
| | | select id, order_id, doc_no, mainitem_code, mainitem_figure, customer_name, business_type, demand_type, |
| | | doc_status, item_code, item_figure, item_figure_version, pruduct_qty, work_qty, op_num, work_center, |
| | | dept, start_date, complete_date, next_dept, is_hold_release, is_out_source, org, page_num, page_index, |
| | | del_flag, create_by, create_time, update_by, update_time , process_status,org_code, std_op, op_status, next_op_name |
| | | del_flag, create_by, create_time, update_by, update_time , process_status,org_code, std_op, op_status, next_op_name, |
| | | low_order_code, order_create_time |
| | | from aps_work_order_job |
| | | </sql> |
| | | |
| | |
| | | process_status, |
| | | std_op, |
| | | op_status, |
| | | next_op_name |
| | | next_op_name, |
| | | low_order_code, |
| | | order_create_time |
| | | </trim> |
| | | values |
| | | <foreach collection="list" item="job" separator=","> |
| | |
| | | #{job.processStatus}, |
| | | #{job.stdOp}, |
| | | #{job.opStatus}, |
| | | #{job.nextOpName} |
| | | #{job.nextOpName}, |
| | | #{job.lowOrderCode}, |
| | | #{job.orderCreateTime} |
| | | ) |
| | | </foreach> |
| | | </insert> |
| | |
| | | process_number,work_center,department, |
| | | plan_start_day,plan_end_day,next_process_deparment, |
| | | is_suspended,is_outsourcing,account, |
| | | id,create_time,del_flag,plant,order_status,std_op,op_status,next_op_name |
| | | id,create_time,del_flag,plant,order_status,std_op,op_status,next_op_name, |
| | | professional_affiliation,order_create_time |
| | | ) |
| | | select |
| | | doc_no,mainitem_code,mainitem_figure, |
| | |
| | | op_num,work_center,dept, |
| | | start_date,complete_date,next_dept, |
| | | is_hold_release,is_out_source,org_code, |
| | | order_id,now(),'0',org_code,doc_status,std_op,op_status,next_op_name |
| | | order_id,now(),'0',org_code,doc_status,std_op,op_status,next_op_name, |
| | | case when low_order_code='0' then 'main' else 'sub' end as professional_affiliation, |
| | | order_create_time |
| | | from aps_work_order_job |
| | | where ( doc_status in (0,1,2,4) and is_hold_release='0' |
| | | and (item_code like 'M03%' or item_code like 'M04%'or item_code like 'A75%') |