Merge remote-tracking branch 'origin/master'

master
mengjiao 11 months ago
commit 1f61137519

@ -252,6 +252,13 @@ public class QuaController extends BaseController {
return qcCheckTaskIncomeService.getDefectListPDA(qcDefectType); return qcCheckTaskIncomeService.getDefectListPDA(qcDefectType);
} }
/**检测地点编码名称**/
@PostMapping("/getCheckLocList")
public List<QcDefectType> getCheckLocList(@RequestBody QcDefectType qcDefectType) {
DynamicDataSourceContextHolder.push(qcDefectType.getFactoryCode());
return qcCheckTaskIncomeService.getCheckLocList(qcDefectType);
}
/**获取生产工单列表**/ /**获取生产工单列表**/
@GetMapping("/getWorkOrder") @GetMapping("/getWorkOrder")
public TableDataInfo getWorkOrder(QcCheckTaskIncome qcCheckTaskIncome) { public TableDataInfo getWorkOrder(QcCheckTaskIncome qcCheckTaskIncome) {

@ -108,4 +108,6 @@ public interface QcCheckTaskIncomeMapper {
List<QcCheckTaskIncome> getIncomeBatchList(); List<QcCheckTaskIncome> getIncomeBatchList();
int updateIncomeBatchList(@Param("list") List<String> batchRecordIds, @Param("time") Date taskTime); int updateIncomeBatchList(@Param("list") List<String> batchRecordIds, @Param("time") Date taskTime);
List<QcDefectType> getCheckLocList(QcDefectType qcDefectType);
} }

@ -96,4 +96,6 @@ public interface IQcCheckTaskIncomeService {
List<QcCheckTaskIncome> getIncomeBatchList(String poolName); List<QcCheckTaskIncome> getIncomeBatchList(String poolName);
int updateIncomeBatchList(List<String> batchRecordIds , Date taskTime); int updateIncomeBatchList(List<String> batchRecordIds , Date taskTime);
List<QcDefectType> getCheckLocList(QcDefectType qcDefectType);
} }

@ -721,4 +721,11 @@ public class QcCheckTaskIncomeServiceImpl implements IQcCheckTaskIncomeService {
public int updateIncomeBatchList(List<String> batchRecordIds , Date taskTime){ public int updateIncomeBatchList(List<String> batchRecordIds , Date taskTime){
return qcCheckTaskIncomeMapper.updateIncomeBatchList(batchRecordIds ,taskTime); return qcCheckTaskIncomeMapper.updateIncomeBatchList(batchRecordIds ,taskTime);
} }
@Override
public List<QcDefectType> getCheckLocList(QcDefectType qcDefectType) {
return qcCheckTaskIncomeMapper.getCheckLocList(qcDefectType);
}
} }

@ -160,6 +160,7 @@
left join qc_check_project qcp on qcp.id = qctp.project_id left join qc_check_project qcp on qcp.id = qctp.project_id
left join qc_project_type qpt on qpt.project_type_code = qcp.project_type left join qc_project_type qpt on qpt.project_type_code = qcp.project_type
where td.belong_to = #{recordId} where td.belong_to = #{recordId}
order by qctp.sort
</select> </select>
<select id="getTopInfo" resultType="com.op.quality.domain.QcCheckTaskProduce"> <select id="getTopInfo" resultType="com.op.quality.domain.QcCheckTaskProduce">
select t.*,be.equipment_name lineName from( select t.*,be.equipment_name lineName from(

@ -151,6 +151,7 @@
from qc_check_task_detail td from qc_check_task_detail td
left join qc_check_type_project qctp on td.type_project_id = qctp.id left join qc_check_type_project qctp on td.type_project_id = qctp.id
where td.belong_to = #{belongTo} and td.del_flag='0' and qctp.del_flag = '0' and td.rule_name is not null where td.belong_to = #{belongTo} and td.del_flag='0' and qctp.del_flag = '0' and td.rule_name is not null
order by qctp.sort
</select> </select>
<select id="getQcUnitList" resultType="com.op.system.api.domain.SysDictData"> <select id="getQcUnitList" resultType="com.op.system.api.domain.SysDictData">
select dict_label dictLabel, select dict_label dictLabel,
@ -440,6 +441,13 @@
and check_status = '0' and check_status = '0'
</select> </select>
<select id="getCheckLocList" resultType="com.op.quality.domain.QcDefectType">
select equipment_code defectCode,
equipment_name defectSubclass
from base_equipment
where equipment_type_code='equ_type_bzx' and status = '1'
</select>
<!--批量更新原始表--> <!--批量更新原始表-->
<update id="updateIncomeBatchList"> <update id="updateIncomeBatchList">
<foreach collection="list" item="item" separator=";"> <foreach collection="list" item="item" separator=";">
@ -451,4 +459,6 @@
record_id = #{item} record_id = #{item}
</foreach> </foreach>
</update> </update>
</mapper> </mapper>

@ -203,22 +203,21 @@
and CONVERT(varchar(7),feedback_time, 120) = SUBSTRING(#{ymd},0,8) and CONVERT(varchar(7),feedback_time, 120) = SUBSTRING(#{ymd},0,8)
</select> </select>
<select id="getDayNoOkHz" resultType="com.op.quality.domain.QcInterface"> <select id="getDayNoOkHz" resultType="com.op.quality.domain.QcInterface">
SELECT SELECT
concat(t.machine_code,t.ymd) ymd, concat(t.workorder_name,t.ymd) ymd,
sum(t.noOk_quality) noOkQuality, sum(t.noOk_quality) noOkQuality,
t.machine_code machineCode t.workorder_name machineCode
from( from(
select CONVERT(varchar(10),qct.income_time, 120) ymd, select CONVERT(varchar(10),qct.income_time, 120) ymd,
qct.noOk_quality, qct.noOk_quality,
mrw.machine_code pow.workorder_name
from qc_check_task qct from qc_check_task qct
left join pro_order_workorder pow on qct.order_no = pow.workorder_code_sap left join pro_order_workorder pow on qct.order_no = pow.workorder_code
left join mes_report_work mrw on pow.workorder_code = mrw.workorder_code where qct.type_code = #{typeCode}
where qct.type_code = #{typeCode} and qct.del_flag='0'
and qct.del_flag='0' and CONVERT(varchar(7),qct.income_time, 120) = SUBSTRING(#{ymd},0,8)
and CONVERT(varchar(7),qct.income_time, 120) = SUBSTRING(#{ymd},0,8) ) t
) t group by t.workorder_name,t.ymd
group by t.machine_code,t.ymd
</select> </select>
<select id="getMothNoOkNum" resultType="com.op.quality.domain.QcInterface"> <select id="getMothNoOkNum" resultType="com.op.quality.domain.QcInterface">
select select

@ -269,6 +269,7 @@
<if test='checkType=="checkTypeSCXJ" or checkType=="checkTypeSC"'> <if test='checkType=="checkTypeSCXJ" or checkType=="checkTypeSC"'>
and pow.del_flag = '0' and pow.del_flag = '0'
</if> </if>
<if test="checkLoc != null and checkLoc != ''">and qct.check_loc = #{checkLoc}</if>
<if test="checkType != null and checkType != ''">and qct.check_type = #{checkType}</if> <if test="checkType != null and checkType != ''">and qct.check_type = #{checkType}</if>
<if test="checkManCode != null and checkManCode != ''">and qctu.check_man_code = #{checkManCode}</if> <if test="checkManCode != null and checkManCode != ''">and qctu.check_man_code = #{checkManCode}</if>
<if test="checkStatus != null and checkStatus != ''">and qct.check_status in (${checkStatus})</if> <if test="checkStatus != null and checkStatus != ''">and qct.check_status in (${checkStatus})</if>

Loading…
Cancel
Save