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