Compare commits
No commits in common. "4ca2b3e091bb6d9f208eb7d0b1a683cc1422b077" and "b8cf2f3c2a569d0cba3d70a1f9d2f31e9cf4991c" have entirely different histories.
4ca2b3e091
...
b8cf2f3c2a
|
|
@ -212,13 +212,8 @@ public class PushProDataUseInfoController extends BaseController {
|
||||||
@GetMapping(value = "getCompletionNotRefundedDetails")
|
@GetMapping(value = "getCompletionNotRefundedDetails")
|
||||||
public TableDataInfo getCompletionNotRefundedDetails(ProIdsBean bean) {
|
public TableDataInfo getCompletionNotRefundedDetails(ProIdsBean bean) {
|
||||||
try {
|
try {
|
||||||
List<MachineInfoBean> results = new ArrayList<>();
|
|
||||||
startPage();
|
startPage();
|
||||||
if (bean.getDeptId() != null) {
|
List<MachineInfoBean> results = service.getCompletionNotRefundedDetails(bean);
|
||||||
results = service.getCompletionNotRefundedDetails(bean);
|
|
||||||
} else {
|
|
||||||
results = service.getCompletionNotRefundedDetailsSub(bean);
|
|
||||||
}
|
|
||||||
return getDataTable(results);
|
return getDataTable(results);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error(e.toString(), e);
|
logger.error(e.toString(), e);
|
||||||
|
|
|
||||||
|
|
@ -55,6 +55,4 @@ public interface ProDataUseInfoMapper {
|
||||||
SysUser getPersonNameAndPhone(MachineInfoBean machineDetail);
|
SysUser getPersonNameAndPhone(MachineInfoBean machineDetail);
|
||||||
|
|
||||||
List<MachineInfoBean> getCompletionNotRefundedSub(ProIdsBean bean);
|
List<MachineInfoBean> getCompletionNotRefundedSub(ProIdsBean bean);
|
||||||
|
|
||||||
List<MachineInfoBean> getCompletionNotRefundedDetailsSub(ProIdsBean bean);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -46,6 +46,4 @@ public interface ProDataUseInfoService {
|
||||||
List<MachineInfoBean> getAllMacheDetails(ProIdsBean bean);
|
List<MachineInfoBean> getAllMacheDetails(ProIdsBean bean);
|
||||||
|
|
||||||
List<MachineInfoBean> getCompletionNotRefundedSub(ProIdsBean bean);
|
List<MachineInfoBean> getCompletionNotRefundedSub(ProIdsBean bean);
|
||||||
|
|
||||||
List<MachineInfoBean> getCompletionNotRefundedDetailsSub(ProIdsBean bean);
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -213,9 +213,4 @@ public class ProDataUseInfoImpl implements ProDataUseInfoService {
|
||||||
public List<MachineInfoBean> getCompletionNotRefundedSub(ProIdsBean bean) {
|
public List<MachineInfoBean> getCompletionNotRefundedSub(ProIdsBean bean) {
|
||||||
return proDataUseInfoMapper.getCompletionNotRefundedSub(bean);
|
return proDataUseInfoMapper.getCompletionNotRefundedSub(bean);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public List<MachineInfoBean> getCompletionNotRefundedDetailsSub(ProIdsBean bean) {
|
|
||||||
return proDataUseInfoMapper.getCompletionNotRefundedDetailsSub(bean);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -283,6 +283,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<select id="getCompletionNotRefundedDetails" resultType="com.bonus.material.push.domain.MachineInfoBean">
|
<select id="getCompletionNotRefundedDetails" resultType="com.bonus.material.push.domain.MachineInfoBean">
|
||||||
select
|
select
|
||||||
bp.pro_name as proName,
|
bp.pro_name as proName,
|
||||||
|
bp.pro_center as proCenter,
|
||||||
bp.actual_end_date as actualEndDate,
|
bp.actual_end_date as actualEndDate,
|
||||||
DATEDIFF(NOW(), bp.actual_end_date) as daysDiff,
|
DATEDIFF(NOW(), bp.actual_end_date) as daysDiff,
|
||||||
sai.num num,
|
sai.num num,
|
||||||
|
|
@ -296,8 +297,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join sys_dept sd on bp.imp_unit = sd.dept_id
|
left join sys_dept sd on bp.imp_unit = sd.dept_id
|
||||||
left join ma_type mt on sai.type_id = mt.type_id
|
left join ma_type mt on sai.type_id = mt.type_id
|
||||||
left join ma_type mt2 on mt.parent_id = mt2.type_id
|
left join ma_type mt2 on mt.parent_id = mt2.type_id
|
||||||
where sai.status = 0 and bp.actual_end_date is not null
|
where sai.is_slt = 0 and sai.end_time is null and bp.actual_end_date is not null
|
||||||
and sd.dept_id = #{deptId}
|
and sd.dept_id = #{deptId} and bp.pro_center is not null
|
||||||
|
<if test="proId != null">
|
||||||
|
AND bp.pro_id = #{proId}
|
||||||
|
</if>
|
||||||
|
<if test="deptName != null and deptName !=''">
|
||||||
|
AND sd.dept_name like concat ('%', #{deptName}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="proCenter != null and proCenter !=''">
|
||||||
|
AND bp.pro_center like concat ('%', #{proCenter}, '%')
|
||||||
|
</if>
|
||||||
|
<if test="proName != null and proName !=''">
|
||||||
|
AND bp.pro_name like concat ('%', #{proName}, '%')
|
||||||
|
</if>
|
||||||
<if test="typeName != null and typeName !=''">
|
<if test="typeName != null and typeName !=''">
|
||||||
AND mt2.type_name like concat ('%', #{typeName}, '%')
|
AND mt2.type_name like concat ('%', #{typeName}, '%')
|
||||||
</if>
|
</if>
|
||||||
|
|
@ -642,30 +655,5 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
where sai.is_slt = 0 and sai.end_time is null and bp.actual_end_date is not null AND sd.dept_name = #{deptName} and bp.pro_center is not null
|
where sai.is_slt = 0 and sai.end_time is null and bp.actual_end_date is not null AND sd.dept_name = #{deptName} and bp.pro_center is not null
|
||||||
GROUP BY bp.pro_center
|
GROUP BY bp.pro_center
|
||||||
</select>
|
</select>
|
||||||
<select id="getCompletionNotRefundedDetailsSub" resultType="com.bonus.material.push.domain.MachineInfoBean">
|
|
||||||
select
|
|
||||||
bp.pro_name as proName,
|
|
||||||
bp.pro_center as proCenter,
|
|
||||||
bp.actual_end_date as actualEndDate,
|
|
||||||
DATEDIFF(NOW(), bp.actual_end_date) as daysDiff,
|
|
||||||
sai.num num,
|
|
||||||
mt.type_name as typeModelName,
|
|
||||||
mt.unit_name as unit,
|
|
||||||
mt2.type_name as typeName
|
|
||||||
from slt_agreement_info sai
|
|
||||||
left join bm_agreement_info bai on sai.agreement_id = bai.agreement_id
|
|
||||||
left join bm_project bp on bai.project_id = bp.pro_id
|
|
||||||
left join sys_dept sd on bp.imp_unit = sd.dept_id
|
|
||||||
left join ma_type mt on sai.type_id = mt.type_id
|
|
||||||
left join ma_type mt2 on mt.parent_id = mt2.type_id
|
|
||||||
where sai.status = 0 and bp.actual_end_date is not null
|
|
||||||
and bp.pro_center is not null and bp.pro_center= #{proCenter}
|
|
||||||
<if test="typeName != null and typeName !=''">
|
|
||||||
AND mt2.type_name like concat ('%', #{typeName}, '%')
|
|
||||||
</if>
|
|
||||||
<if test="typeModelName != null and typeModelName !=''">
|
|
||||||
AND mt.type_name like concat ('%', #{typeModelName}, '%')
|
|
||||||
</if>
|
|
||||||
</select>
|
|
||||||
|
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue