派工查询问题及bom审核人查询问题

This commit is contained in:
Ledo 2025-02-21 10:51:03 +08:00
parent 2a3ae07fb7
commit e95c13d311
3 changed files with 5 additions and 2 deletions

View File

@ -58,6 +58,7 @@ public interface TaskDispatchMapper extends BaseMapperX<TaskDispatchDO> {
.leftJoin(PlanTaskBomDO.class, "i", wrapper -> wrapper.eq(PlanTaskBomDO::getTaskId, PlanTaskDO::getId).eq(PlanTaskBomDO::getBomDetailId, TaskDispatchDO::getBomDetailId))
.leftJoin(AdminUserDO.class, "u1", AdminUserDO::getId, PlanTaskBomDO::getOwner)
.orderByDesc(TaskDispatchDO::getId)
.eq(ProjectOrderSubDO::getDeleted,0)
.disableSubLogicDel();
query.like(!StringUtils.isEmpty(reqVO.getCode()), TaskDispatchDO::getCode, reqVO.getCode())

View File

@ -15,6 +15,7 @@ import com.chanko.yunxi.mes.module.heli.dal.dataobject.bdgzsomthing.bdgzsomthing
import com.chanko.yunxi.mes.module.heli.dal.dataobject.equipmanufacture.EquipManufactureDO;
import com.chanko.yunxi.mes.module.heli.dal.dataobject.fpuserdetail.FpUserDetailDO;
import com.chanko.yunxi.mes.module.heli.dal.dataobject.plan.PlanDO;
import com.chanko.yunxi.mes.module.heli.dal.dataobject.projectorder.ProjectOrderSubDO;
import com.chanko.yunxi.mes.module.heli.dal.dataobject.serialnumber.SerialNumberDO;
import com.chanko.yunxi.mes.module.heli.dal.dataobject.taskdispatch.TaskDispatchDO;
import com.chanko.yunxi.mes.module.heli.dal.dataobject.taskdispatch.TaskDispatchDetailDO;
@ -268,7 +269,8 @@ public class TaskDispatchServiceImpl implements TaskDispatchService {
for (TaskDispatchDO taskDispatchDO : list) {
Integer num ;
if (numMap.get(taskDispatchDO.getProjectSubId())==null){
num = projectOrderSubMapper.selectById(taskDispatchDO.getProjectSubId()).getAmount();
ProjectOrderSubDO projectOrderSubDO = projectOrderSubMapper.selectById(taskDispatchDO.getProjectSubId());
num = projectOrderSubMapper.selectById(taskDispatchDO.getProjectSubId()).getAmount();
numMap.put(taskDispatchDO.getProjectSubId(),num);
}else {
num= numMap.get(taskDispatchDO.getProjectSubId());

View File

@ -37,7 +37,7 @@ v-for="dicts in getIntDictOptions(DICT_TYPE.HELI_SHENHE)" :key="dicts.value"
<script setup lang="ts">
import * as ShenheApi from '@/api/heli/shenhe'
import { getIntDictOptions, getStrDictOptions, DICT_TYPE, getDictLabel } from '@/utils/dict'
import UserSelect from '@/views/heli/hlvuestyle/userSelect.vue'
import UserSelect from '@/views/heli/hlvuestyle/userSelectAll.vue'
const { t } = useI18n() //
const message = useMessage() //