大屏二级接口修改
This commit is contained in:
parent
f99abf6cf4
commit
8bc69b7139
|
|
@ -58,10 +58,10 @@ public class PushProDataUseInfoController extends BaseController {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@PostMapping(value = "getProDataDetails")
|
@PostMapping(value = "getProDataDetails")
|
||||||
public AjaxResult getProDataDetails(@RequestBody ProIdsBean bean) {
|
public TableDataInfo getProDataDetails(@RequestBody ProIdsBean bean) {
|
||||||
try {
|
try {
|
||||||
List<MachineInfoBean> results = service.getProDataDetails(bean);
|
List<MachineInfoBean> results = service.getProDataDetails(bean);
|
||||||
return AjaxResult.success(results);
|
return getDataTable(results);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error(e.toString(), e);
|
logger.error(e.toString(), e);
|
||||||
throw new ServiceException("数据查询异常,请联系运维人员查询日志处理");
|
throw new ServiceException("数据查询异常,请联系运维人员查询日志处理");
|
||||||
|
|
|
||||||
|
|
@ -63,4 +63,7 @@ public class MachineInfoBean {
|
||||||
*/
|
*/
|
||||||
private Integer isStatics;
|
private Integer isStatics;
|
||||||
|
|
||||||
|
//租赁价格
|
||||||
|
private String leasePrice;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,10 @@ public class ProDataUseInfoImpl implements ProDataUseInfoService {
|
||||||
@Override
|
@Override
|
||||||
public List<MachineInfoBean> getProDataDetails(ProIdsBean bean) {
|
public List<MachineInfoBean> getProDataDetails(ProIdsBean bean) {
|
||||||
List<MachineInfoBean> machineDetails = proDataUseInfoMapper.getProDataDetails(bean);
|
List<MachineInfoBean> machineDetails = proDataUseInfoMapper.getProDataDetails(bean);
|
||||||
|
for (MachineInfoBean machineDetail : machineDetails) {
|
||||||
|
String typeKeeperName = proDataUseInfoMapper.getTypeKeeperName(machineDetail);
|
||||||
|
machineDetail.setTypeKeeperName(typeKeeperName);
|
||||||
|
}
|
||||||
return machineDetails;
|
return machineDetails;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1282,6 +1282,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
mt.type_name as typeModelName,
|
mt.type_name as typeModelName,
|
||||||
mt.unit_name as unit,
|
mt.unit_name as unit,
|
||||||
sum(sai.num) num,
|
sum(sai.num) num,
|
||||||
|
mt.lease_price as leasePrice,
|
||||||
ANY_VALUE(mt.type_id) as typeId,
|
ANY_VALUE(mt.type_id) as typeId,
|
||||||
mt2.is_statics as isStatics
|
mt2.is_statics as isStatics
|
||||||
FROM slt_agreement_info sai
|
FROM slt_agreement_info sai
|
||||||
|
|
@ -1296,6 +1297,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="isStatics != null">
|
<if test="isStatics != null">
|
||||||
AND mt2.is_statics = #{isStatics}
|
AND mt2.is_statics = #{isStatics}
|
||||||
</if>
|
</if>
|
||||||
|
<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>
|
||||||
GROUP BY mt.type_id
|
GROUP BY mt.type_id
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue