Merge remote-tracking branch 'origin/master'

master
Yangwl 1 year ago
commit 8bc7cd17ce

@ -103,7 +103,7 @@ public class ProBPOrderWorkorderController extends BaseController {
/**
*
*/
@RequiresPermissions("mes:bppro:proworkorder:list")
@RequiresPermissions("mes:bppro:workorder:list")
@GetMapping("/list")
public TableDataInfo list(ProOrderWorkorder proOrderWorkorder) {
startPage();

@ -94,4 +94,6 @@ public interface QcCheckTaskIncomeMapper {
int addQcCheckTaskDefects(@Param("list") List<QcCheckTaskDefect> defects);
List<QcCheckTaskDefect> getCkeckDefectList(QcCheckTaskDetail qcCheckTaskDetail);
List<QcCheckTaskDefect> getDefectType(QcCheckTaskDetail qcCheckTaskDetail);
}

@ -484,6 +484,7 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
defect.setCreateTime(nowTime);
defect.setCreateBy(updateBy);
defect.setFactoryCode(factoryCode);
defect.setBelongTo(belongId);
noOkQquality = noOkQquality.add(defect.getNoOkQuality());
}
qcCheckTask.setNoOkQuality(noOkQquality);//累计不合格数

@ -1,5 +1,6 @@
package com.op.quality.service.impl;
import com.alibaba.nacos.common.utils.CollectionUtils;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.dynamic.datasource.toolkit.DynamicDataSourceContextHolder;
import com.op.common.core.domain.BaseFileData;
@ -126,6 +127,9 @@ public class QcProCheckServiceImpl implements QcProCheckService {
List<QcCheckTaskDetail> qcCheckTaskDetails =qcCheckTaskIncomeMapper.getCkeckProjectList(qcCheckTaskDetail);
dto.setQcCheckTaskDetails(qcCheckTaskDetails);
List<QcCheckTaskDefect> defects =qcCheckTaskIncomeMapper.getCkeckDefectList(qcCheckTaskDetail);
if(CollectionUtils.isEmpty(defects)){
defects =qcCheckTaskIncomeMapper.getDefectType(qcCheckTaskDetail);
}
dto.setDefects(defects);
return dto;
}

@ -64,6 +64,7 @@ public class WmsRawOrderInServiceImpl implements IWmsRawOrderInService {
wmsRawOrderIn.setActiveFlag("1");
wmsRawOrderIn.setSupplyCode("0000102874");
wmsRawOrderIn.setSapFactoryCode("1000");
wmsRawOrderIn.setQualityStatus("0");
return wmsRawOrderInMapper.insertWmsRawOrderIn(wmsRawOrderIn);
}

@ -322,12 +322,22 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select>
<select id="getCkeckDefectList" resultType="com.op.quality.domain.QcCheckTaskDefect">
select
record_id recordId,
qctd.record_id recordId,
qctd.defect_code defectCode,
qctd.defect_subclass defectSubclass,
qctd.noOk_quality noOkQuality
from qc_check_task_defect qctd
where qctd.del_flag = '0' and qctd.belong_to = #{belongTo}
order by qctd.defect_code
</select>
<select id="getDefectType" resultType="com.op.quality.domain.QcCheckTaskDefect">
select
defect_code defectCode,
defect_subclass defectSubclass,
noOk_quality noOkQuality
from qc_check_task_defect
where del_flag = '0' and belong_to = #{belongTo}
defect_subclass defectSubclass
from qc_defect_type qdt
left join qc_check_type qct on qdt.defect_type = qct.type_code
where qct.order_code = #{checkType} and qdt.del_flag = '0'
order by qdt.defect_code
</select>
<insert id="addCheckUsers">
insert into qc_check_task_user(

@ -23,7 +23,7 @@ import com.op.common.core.web.page.TableDataInfo;
/**
* Controller
*
*
* @author Open Platform
* @date 2023-07-06
*/
@ -39,11 +39,23 @@ public class OdsProcureOutOrderController extends BaseController {
@RequiresPermissions("wms:outorder:list")
@GetMapping("/list")
public TableDataInfo list(OdsProcureOutOrder odsProcureOutOrder) {
startPage();
// startPage();
List<OdsProcureOutOrder> list = odsProcureOutOrderService.selectOdsProcureOutOrderList(odsProcureOutOrder);
return getDataTable(list);
}
@PostMapping("/listZU")
public TableDataInfo listZU(OdsProcureOutOrder odsProcureOutOrder) {
startPage();
List<OdsProcureOutOrder> list = odsProcureOutOrderService.selectOdsProcureOutOrderListZU(odsProcureOutOrder);
for (OdsProcureOutOrder odsProcureOutOrder1:
list) {
List<OdsProcureOutOrder> orderList1= odsProcureOutOrderService.selectOdsProcureOutOrderListZUTwo(odsProcureOutOrder1);
odsProcureOutOrder1.setList(orderList1);
}
return getDataTable(list);
}
/**
*
*/

@ -97,8 +97,8 @@ public class WmsProductPut extends BaseEntity {
private String batchNumber;
/** 预留字段2 */
@Excel(name = "预留字段2")
private String attr2;
@Excel(name = "生产日期")
private String productDate;
/** 预留字段3 */
@Excel(name = "预留字段3")
@ -272,13 +272,16 @@ public class WmsProductPut extends BaseEntity {
public String getBatchNumber() {
return batchNumber;
}
public void setAttr2(String attr2) {
this.attr2 = attr2;
public String getProductDate() {
return productDate;
}
public String getAttr2() {
return attr2;
public void setProductDate(String productDate) {
this.productDate = productDate;
}
public void setAttr3(String attr3) {
this.attr3 = attr3;
}
@ -338,40 +341,36 @@ public class WmsProductPut extends BaseEntity {
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("workOrder", getWorkOrder())
.append("factoryCode", getFactoryCode())
.append("productOrder", getProductOrder())
.append("whCode", getWhCode())
.append("waCode", getWaCode())
.append("wlCode", getWlCode())
.append("productName", getProductName())
.append("productCode", getProductCode())
.append("productSort", getProductSort())
.append("specification", getSpecification())
.append("unitOfMeasure", getUnitOfMeasure())
.append("planQuantity", getPlanQuantity())
.append("putQuantity", getPutQuantity())
.append("status", getStatus())
.append("sapStatus", getSapStatus())
.append("sapProof", getSapProof())
.append("sapMessage", getSapMessage())
.append("putDate", getPutDate())
.append("batchNumber", getBatchNumber())
.append("attr2", getAttr2())
.append("attr3", getAttr3())
.append("attr4", getAttr4())
.append("attr5", getAttr5())
.append("attr6", getAttr6())
.append("attr7", getAttr7())
.append("attr8", getAttr8())
.append("attr9", getAttr9())
.append("attr10", getAttr10())
.append("createBy", getCreateBy())
.append("createTime", getCreateTime())
.append("updateBy", getUpdateBy())
.append("updateTime", getUpdateTime())
.toString();
return "WmsProductPut{" +
"id='" + id + '\'' +
", workOrder='" + workOrder + '\'' +
", factoryCode='" + factoryCode + '\'' +
", productOrder='" + productOrder + '\'' +
", whCode='" + whCode + '\'' +
", waCode='" + waCode + '\'' +
", wlCode='" + wlCode + '\'' +
", productName='" + productName + '\'' +
", productCode='" + productCode + '\'' +
", productSort='" + productSort + '\'' +
", specification='" + specification + '\'' +
", unitOfMeasure='" + unitOfMeasure + '\'' +
", planQuantity=" + planQuantity +
", putQuantity=" + putQuantity +
", status='" + status + '\'' +
", sapStatus='" + sapStatus + '\'' +
", sapProof='" + sapProof + '\'' +
", sapMessage='" + sapMessage + '\'' +
", putDate=" + putDate +
", batchNumber='" + batchNumber + '\'' +
", product_date='" + productDate + '\'' +
", attr3='" + attr3 + '\'' +
", attr4='" + attr4 + '\'' +
", attr5='" + attr5 + '\'' +
", attr6='" + attr6 + '\'' +
", attr7='" + attr7 + '\'' +
", attr8='" + attr8 + '\'' +
", attr9='" + attr9 + '\'' +
", attr10='" + attr10 + '\'' +
'}';
}
}

@ -69,4 +69,8 @@ public interface OdsProcureOutOrderMapper {
void updateOdsProcureOutOrderByid(OdsProcureOutOrder odsProcureOutOrder);
List<OdsProcureOutOrder> selectOdsProcureOutOrderListByIds(@Param("list") List<OdsProcureOutOrder> orderList);
List<OdsProcureOutOrder> selectOdsProcureOutOrderListZU(OdsProcureOutOrder odsProcureOutOrder);
List<OdsProcureOutOrder> selectOdsProcureOutOrderListZUT(OdsProcureOutOrder odsProcureOutOrder1);
}

@ -57,4 +57,8 @@ public interface IOdsProcureOutOrderService {
* @return
*/
public int deleteOdsProcureOutOrderByID(String ID);
List<OdsProcureOutOrder> selectOdsProcureOutOrderListZU(OdsProcureOutOrder odsProcureOutOrder);
List<OdsProcureOutOrder> selectOdsProcureOutOrderListZUTwo(OdsProcureOutOrder odsProcureOutOrder1);
}

@ -1,5 +1,6 @@
package com.op.wms.service.impl;
import java.util.ArrayList;
import java.util.List;
import com.baomidou.dynamic.datasource.annotation.DS;
@ -91,4 +92,16 @@ public class OdsProcureOutOrderServiceImpl implements IOdsProcureOutOrderService
public int deleteOdsProcureOutOrderByID(String ID) {
return odsProcureOutOrderMapper.deleteOdsProcureOutOrderByID(ID);
}
@Override
public List<OdsProcureOutOrder> selectOdsProcureOutOrderListZU(OdsProcureOutOrder odsProcureOutOrder) {
return odsProcureOutOrderMapper.selectOdsProcureOutOrderListZU(odsProcureOutOrder);
}
@Override
public List<OdsProcureOutOrder> selectOdsProcureOutOrderListZUTwo(OdsProcureOutOrder odsProcureOutOrder1) {
List<OdsProcureOutOrder> orderList= odsProcureOutOrderMapper.selectOdsProcureOutOrderListZUT(odsProcureOutOrder1);
return orderList;
}
}

@ -40,11 +40,32 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="enterpriseId" column="Enterprise_Id" />
<result property="enterpriseCode" column="Enterprise_Code" />
</resultMap>
<sql id="pagination_tail">
limit #{page.pageOffset} , #{page.rows}
</sql>
<sql id="selectOdsProcureOutOrderVo">
select Site_code, ID, Produce_Code, Material_Code, Material_Desc, Plan_Date, Plan_Number, Unit, COALESCE(Out_Number, 0) as Out_Number , Loc_Code, Loc_Desc, Production_Line_Desc, Production_Line_Code, Order_Status, User_Defined1, User_Defined2, User_Defined3, User_Defined4, User_Defined5, User_Defined6, User_Defined7, User_Defined8, User_Defined9, User_Defined10, User_Defined11, Supplier_Code, Supplier_Name, Create_By, Create_Date, Last_Update_By, Last_Update_Date, Active, Enterprise_Id, Enterprise_Code from ods_procure_out_order
</sql>
<select id="selectOdsProcureOutOrderListZU" parameterType="OdsProcureOutOrder" resultMap="OdsProcureOutOrderResult">
SELECT
Produce_Code,
User_Defined1
FROM
ods_procure_out_order
where
Active='1'
<if test="produceCode != null and produceCode != ''"> and Produce_Code = #{produceCode}</if>
<if test="userDefined1 != null and userDefined1 != ''"> and User_Defined1 = #{userDefined1}</if>
GROUP BY Produce_Code,User_Defined1
</select>
<select id="selectOdsProcureOutOrderListZUT" parameterType="OdsProcureOutOrder" resultMap="OdsProcureOutOrderResult">
<include refid="selectOdsProcureOutOrderVo"/>
<where>
<if test="produceCode != null and produceCode != ''"> and Produce_Code = #{produceCode}</if>
<if test="userDefined1 != null and userDefined1 != ''"> and User_Defined1 = #{userDefined1}</if>
<if test="Active != null and Active != ''"> and Active = #{Active}</if>
</where>
</select>
<select id="selectOdsProcureOutOrderList" parameterType="OdsProcureOutOrder" resultMap="OdsProcureOutOrderResult">
<include refid="selectOdsProcureOutOrderVo"/>
<where>
@ -294,4 +315,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{item.ID}
</foreach>
</select>
</mapper>

@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="sapMessage" column="SAP_message" />
<result property="putDate" column="put_date" />
<result property="batchNumber" column="batch_number" />
<result property="attr2" column="attr2" />
<result property="productDate" column="product_date" />
<result property="attr3" column="attr3" />
<result property="attr4" column="attr4" />
<result property="attr5" column="attr5" />
@ -41,7 +41,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectWmsProductPutVo">
select id, work_order, factory_code, product_order, wh_code, wa_code, wl_code, product_name, product_code, product_sort, specification, unit_of_measure, plan_quantity, put_quantity, status, SAP_status, SAP_proof, SAP_message, put_date, batch_number, attr2, attr3, attr4, attr5, attr6, attr7, attr8, attr9, attr10, create_by, create_time, update_by, update_time from wms_product_put
select id, work_order, factory_code, product_order, wh_code, wa_code, wl_code, product_name, product_code, product_sort, specification, unit_of_measure, plan_quantity, put_quantity, status, SAP_status, SAP_proof, SAP_message, put_date, batch_number, product_date, attr3, attr4, attr5, attr6, attr7, attr8, attr9, attr10, create_by, create_time, update_by, update_time from wms_product_put
</sql>
<select id="selectWmsProductPutList" parameterType="WmsProductPut" resultMap="WmsProductPutResult">
@ -66,7 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sapMessage != null and sapMessage != ''"> and SAP_message = #{sapMessage}</if>
<if test="putDate != null "> and put_date = #{putDate}</if>
<if test="batchNumber != null and batchNumber != ''"> and batch_number = #{batchNumber}</if>
<if test="attr2 != null and attr2 != ''"> and attr2 = #{attr2}</if>
<if test="productDate != null and productDate != ''"> and product_date = #{productDate}</if>
<if test="attr3 != null and attr3 != ''"> and attr3 = #{attr3}</if>
<if test="attr4 != null and attr4 != ''"> and attr4 = #{attr4}</if>
<if test="attr5 != null and attr5 != ''"> and attr5 = #{attr5}</if>
@ -86,7 +86,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectWmsProductPutByWorkOrder" resultMap="WmsProductPutResult">
SELECT
factory_code,product_order,wh_code,wa_code,wl_code,product_name,product_code,product_sort,specification,
unit_of_measure,plan_quantity,put_quantity,status,SAP_status,SAP_proof,SAP_message,put_date,batch_number,attr2,
unit_of_measure,plan_quantity,put_quantity,status,SAP_status,SAP_proof,SAP_message,put_date,batch_number,product_date,
attr3,attr4,attr5,attr6,attr7,attr8,attr9,attr10,create_by,create_time,
update_by,update_time,id
FROM
@ -118,7 +118,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sapMessage != null">SAP_message,</if>
<if test="putDate != null">put_date,</if>
<if test="batchNumber != null">batch_number,</if>
<if test="attr2 != null">attr2,</if>
<if test="productDate != null">product_date,</if>
<if test="attr3 != null">attr3,</if>
<if test="attr4 != null">attr4,</if>
<if test="attr5 != null">attr5,</if>
@ -153,7 +153,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sapMessage != null">#{sapMessage},</if>
<if test="putDate != null">#{putDate},</if>
<if test="batchNumber != null">#{batch_number},</if>
<if test="attr2 != null">#{attr2},</if>
<if test="productDate != null">#{product_date},</if>
<if test="attr3 != null">#{attr3},</if>
<if test="attr4 != null">#{attr4},</if>
<if test="attr5 != null">#{attr5},</if>
@ -191,7 +191,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="sapMessage != null">SAP_message = #{sapMessage},</if>
<if test="putDate != null">put_date = #{putDate},</if>
<if test="batchNumber != null">batch_number = #{batchNumber},</if>
<if test="attr2 != null">attr2 = #{attr2},</if>
<if test="productDate != null">product_date = #{productDate},</if>
<if test="attr3 != null">attr3 = #{attr3},</if>
<if test="attr4 != null">attr4 = #{attr4},</if>
<if test="attr5 != null">attr5 = #{attr5},</if>

Loading…
Cancel
Save