来源明细接口
This commit is contained in:
parent
89563275b7
commit
acaa99650e
|
|
@ -135,7 +135,7 @@ public class PlanOutController {
|
||||||
return service.getOutDetails(dto.getData());
|
return service.getOutDetails(dto.getData());
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* X详情接口
|
* 单个批次发货详情列表接口
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -147,7 +147,7 @@ public class PlanOutController {
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* X详情接口
|
* 待发货 接口
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -263,7 +263,7 @@ public class PlanOutController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据总览
|
* 数据总览-查询
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -284,10 +284,10 @@ public class PlanOutController {
|
||||||
*/
|
*/
|
||||||
@GetMapping("getDataPlanByPage")
|
@GetMapping("getDataPlanByPage")
|
||||||
@DecryptAndVerify(decryptedClass = ProNeedInfo.class)
|
@DecryptAndVerify(decryptedClass = ProNeedInfo.class)
|
||||||
public PageInfo<ProNeedInfo> getDataPlanByPage(EncryptedReq<ProNeedInfo> dto) {
|
public PageInfo<PlanApplyBean> getDataPlanByPage(EncryptedReq<ProNeedInfo> dto) {
|
||||||
PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
|
PageHelper.startPage(dto.getPageNum(),dto.getPageSize());
|
||||||
List<ProNeedInfo> list = service.getDataPlanByPage(dto.getData());
|
List<PlanApplyBean> list = service.getDataPlanByPage(dto.getData());
|
||||||
PageInfo<ProNeedInfo> pageInfo = new PageInfo<>(list);
|
PageInfo<PlanApplyBean> pageInfo = new PageInfo<>(list);
|
||||||
return pageInfo;
|
return pageInfo;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -347,7 +347,7 @@ public class PlanOutController {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查看来源-计划分页
|
* 告警内容详情
|
||||||
* @param dto
|
* @param dto
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -159,7 +159,7 @@ public interface PlanOutMapper {
|
||||||
* @param data
|
* @param data
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<ProNeedInfo> getDataPlanByPage(ProNeedInfo data);
|
List<PlanApplyBean> getDataPlanByPage(ProNeedInfo data);
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ public interface PlanOutService {
|
||||||
* @param data
|
* @param data
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
List<ProNeedInfo> getDataPlanByPage(ProNeedInfo data);
|
List<PlanApplyBean> getDataPlanByPage(ProNeedInfo data);
|
||||||
/**
|
/**
|
||||||
* 查询 基础信息
|
* 查询 基础信息
|
||||||
* @param data
|
* @param data
|
||||||
|
|
|
||||||
|
|
@ -140,7 +140,7 @@ public class PlanOutServiceImpl implements PlanOutService{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 数据总览 查询
|
* 数据总览-- 查询
|
||||||
* @param data
|
* @param data
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
@ -156,8 +156,8 @@ public class PlanOutServiceImpl implements PlanOutService{
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<ProNeedInfo> getDataPlanByPage(ProNeedInfo data) {
|
public List<PlanApplyBean> getDataPlanByPage(ProNeedInfo data) {
|
||||||
List<ProNeedInfo> list = new ArrayList<>();
|
List<PlanApplyBean> list = new ArrayList<>();
|
||||||
try {
|
try {
|
||||||
list = mapper.getDataPlanByPage(data);
|
list = mapper.getDataPlanByPage(data);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
|
||||||
|
|
@ -263,7 +263,31 @@
|
||||||
</where>
|
</where>
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getDataPlanByPage" resultType="com.bonus.gzgqj.business.plan.entity.ProNeedInfo">
|
<select id="getDataPlanByPage" resultType="com.bonus.gzgqj.business.plan.entity.PlanApplyBean">
|
||||||
|
SELECT
|
||||||
|
plan.id,
|
||||||
|
plan.CODE,pro.name proName ,
|
||||||
|
plan.project_id projectId,
|
||||||
|
plan.project_part projectPart,
|
||||||
|
plan.project_content projectContent,
|
||||||
|
plan.need_time needTime,
|
||||||
|
plan.creator,
|
||||||
|
plan.create_time createTime,
|
||||||
|
plan.remark,
|
||||||
|
plan.STATUS,
|
||||||
|
plan.updater,
|
||||||
|
plan.status_type statusType ,tdd.model_id
|
||||||
|
FROM
|
||||||
|
t_plan_apply plan
|
||||||
|
left join bm_project pro on plan.project_id=pro.ID
|
||||||
|
left join t_plan_details tdd on plan.id=tdd.apply_id
|
||||||
|
where tdd.model_id=#{moduleId} and plan.status_type=1
|
||||||
|
|
||||||
|
</select>
|
||||||
|
|
||||||
|
|
||||||
|
<!--查询模型-->
|
||||||
|
<select id="getDataInfoDetails" resultType="com.bonus.gzgqj.business.plan.entity.PlanApplyBean">
|
||||||
select pni.id,pni.type,pni.name,pni.module,pni.module_id moduleId,pni.need_num,pni.fh_num,pni.tz_num,
|
select pni.id,pni.type,pni.name,pni.module,pni.module_id moduleId,pni.need_num,pni.fh_num,pni.tz_num,
|
||||||
pro.num proNum,plan.num planNum,pni.unit
|
pro.num proNum,plan.num planNum,pni.unit
|
||||||
from t_pro_need_info pni
|
from t_pro_need_info pni
|
||||||
|
|
@ -278,16 +302,6 @@
|
||||||
GROUP BY model_id
|
GROUP BY model_id
|
||||||
)plan on plan.model_id=pni.module_id
|
)plan on plan.model_id=pni.module_id
|
||||||
where pni.module_id=#{moduleId}
|
where pni.module_id=#{moduleId}
|
||||||
|
|
||||||
|
|
||||||
</select>
|
|
||||||
|
|
||||||
|
|
||||||
<!--查询模型-->
|
|
||||||
<select id="getDataInfoDetails" resultType="com.bonus.gzgqj.business.plan.entity.PlanApplyBean">
|
|
||||||
select pni.id,pni.type,pni.name,pni.module,pni.module_id moduleId,pni.need_num,pni.fh_num,pni.tz_num,
|
|
||||||
pro.num proNum,plan.num planNum
|
|
||||||
from t_pro_need_info pni
|
|
||||||
</select>
|
</select>
|
||||||
<select id="getWarnInfoPage" resultType="com.bonus.gzgqj.business.plan.entity.ProNeedInfo">
|
<select id="getWarnInfoPage" resultType="com.bonus.gzgqj.business.plan.entity.ProNeedInfo">
|
||||||
select tni.pro_id,tni.type,tni.`name`,tni.module,tni.module_id moduleId ,tni.unit,tni.need_num needNum,tni.id ,mt.num,
|
select tni.pro_id,tni.type,tni.`name`,tni.module,tni.module_id moduleId ,tni.unit,tni.need_num needNum,tni.id ,mt.num,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue