Merge remote-tracking branch 'origin/master' into master
正在显示
15 个修改的文件
包含
93 行增加
和
23 行删除
... | @@ -8,12 +8,14 @@ | ... | @@ -8,12 +8,14 @@ |
8 | d.depart_name AS depart_name, | 8 | d.depart_name AS depart_name, |
9 | ifnull( dl.fxk_count, 0 ) AS fxk_count, | 9 | ifnull( dl.fxk_count, 0 ) AS fxk_count, |
10 | ifnull( di.yhpc_count, 0 ) AS yhpc_count, | 10 | ifnull( di.yhpc_count, 0 ) AS yhpc_count, |
11 | ifnull( aq.aqyh_count, 0 ) AS aqyh_count | 11 | ifnull( aq.aqyh_count, 0 ) AS aqyh_count, |
12 | ifnull( ir.xj_count, 0 ) AS xj_count | ||
12 | FROM | 13 | FROM |
13 | sys_depart d | 14 | sys_depart d |
14 | LEFT JOIN ( SELECT depart_id, count( id ) fxk_count FROM danger_level_manage WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) dl ON dl.depart_id = d.id | 15 | LEFT JOIN ( SELECT depart_id, count( id ) fxk_count FROM danger_level_manage WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) dl ON dl.depart_id = d.id |
15 | LEFT JOIN ( SELECT depart_id, count( id ) yhpc_count FROM danger_inspection_record WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) di ON di.depart_id = d.id | 16 | LEFT JOIN ( SELECT depart_id, count( id ) yhpc_count FROM danger_inspection_record WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) di ON di.depart_id = d.id |
16 | LEFT JOIN ( SELECT depart_id, count( id ) aqyh_count FROM ajh_rectification_info WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) aq ON aq.depart_id = d.id | 17 | LEFT JOIN ( SELECT depart_id, count( id ) aqyh_count FROM ajh_rectification_info WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) aq ON aq.depart_id = d.id |
18 | LEFT JOIN ( SELECT depart_id, count( id ) xj_count FROM danger_inspection_record WHERE create_time LIKE CONCAT(#{year},'%') GROUP BY depart_id ) ir ON ir.depart_id = d.id | ||
17 | WHERE | 19 | WHERE |
18 | d.depart_type = 1 | 20 | d.depart_type = 1 |
19 | ORDER BY | 21 | ORDER BY | ... | ... |
... | @@ -26,4 +26,6 @@ public class RiskDatabaseResult { | ... | @@ -26,4 +26,6 @@ public class RiskDatabaseResult { |
26 | @ApiModelProperty(value = "隐患排查事件数量") | 26 | @ApiModelProperty(value = "隐患排查事件数量") |
27 | private Integer aqyhCount; | 27 | private Integer aqyhCount; |
28 | 28 | ||
29 | @ApiModelProperty(value = "巡检数量") | ||
30 | private Integer xjCount; | ||
29 | } | 31 | } | ... | ... |
... | @@ -118,7 +118,6 @@ public class TestMetricInfoController { | ... | @@ -118,7 +118,6 @@ public class TestMetricInfoController { |
118 | //月数据 | 118 | //月数据 |
119 | if (timeType.equals("3")) dataMap.put( metricInfoVO.getEquipmentCode()+"_ZT" ,JSUtils.subtract( 30*24*60, paramMap.get(metricInfoVO.getYxExpress()),paramMap.get(metricInfoVO.getGzExpress()) ) );//暂停 | 119 | if (timeType.equals("3")) dataMap.put( metricInfoVO.getEquipmentCode()+"_ZT" ,JSUtils.subtract( 30*24*60, paramMap.get(metricInfoVO.getYxExpress()),paramMap.get(metricInfoVO.getGzExpress()) ) );//暂停 |
120 | } | 120 | } |
121 | |||
122 | dataList.add( dataMap ); | 121 | dataList.add( dataMap ); |
123 | } | 122 | } |
124 | } | 123 | } | ... | ... |
... | @@ -67,7 +67,7 @@ | ... | @@ -67,7 +67,7 @@ |
67 | </select> | 67 | </select> |
68 | <!-- 根据id或code校验合同编号是否唯一--> | 68 | <!-- 根据id或code校验合同编号是否唯一--> |
69 | <select id="checkContractCode" resultType="java.lang.Integer"> | 69 | <select id="checkContractCode" resultType="java.lang.Integer"> |
70 | select count(1) from erp_purchase_contract where contract_code = #{contractCode} | 70 | select count(1) from erp_purchase_contract where use_flag =1 and start_time gt; now() and ent_time lt; now() and contract_code = #{contractCode} |
71 | </select> | 71 | </select> |
72 | 72 | ||
73 | </mapper> | 73 | </mapper> | ... | ... |
... | @@ -34,6 +34,7 @@ public class DrugConsumptionAnalysisController { | ... | @@ -34,6 +34,7 @@ public class DrugConsumptionAnalysisController { |
34 | result.setResult(data); | 34 | result.setResult(data); |
35 | return result; | 35 | return result; |
36 | } | 36 | } |
37 | // 2411112:总药耗趋势 --->吨水药费 | ||
37 | @AutoLog(value = "总药耗趋势") | 38 | @AutoLog(value = "总药耗趋势") |
38 | @ApiOperation(value = "总药耗趋势", notes = "总药耗趋势") | 39 | @ApiOperation(value = "总药耗趋势", notes = "总药耗趋势") |
39 | @GetMapping("/data/drugConsumptionTrend") | 40 | @GetMapping("/data/drugConsumptionTrend") | ... | ... |
... | @@ -242,13 +242,10 @@ public class EquipmentSparepartController { | ... | @@ -242,13 +242,10 @@ public class EquipmentSparepartController { |
242 | } | 242 | } |
243 | } | 243 | } |
244 | } | 244 | } |
245 | //部门子集 | ||
246 | //后续补充 | ||
247 | |||
248 | Page<EquipmentSparepartVO> page = new Page<EquipmentSparepartVO>(pageNo, pageSize); | 245 | Page<EquipmentSparepartVO> page = new Page<EquipmentSparepartVO>(pageNo, pageSize); |
249 | //权限部门 | 246 | //权限部门 |
250 | if(StringUtils.isNotEmpty(sparepartSearchVO.getDepartId())){ | 247 | if(StringUtils.isNotEmpty(sparepartSearchVO.getDepartId())){ |
251 | String departIds = iCommonSqlService.getChildDepartId(sparepartSearchVO.getDepartId() ) ; | 248 | String departIds = iCommonSqlService.getChildDepartId(sparepartSearchVO.getDepartId() ) ;//部门子集 |
252 | sparepartSearchVO.setDepartIds(departIds ) ; | 249 | sparepartSearchVO.setDepartIds(departIds ) ; |
253 | }else{ | 250 | }else{ |
254 | sparepartSearchVO.setDepartIds( JSUtils.quoteEach(BaseContextHandler.getDeparts() ,",")) ;//非管理员,获取权限部门集合 | 251 | sparepartSearchVO.setDepartIds( JSUtils.quoteEach(BaseContextHandler.getDeparts() ,",")) ;//非管理员,获取权限部门集合 |
... | @@ -322,6 +319,23 @@ public class EquipmentSparepartController { | ... | @@ -322,6 +319,23 @@ public class EquipmentSparepartController { |
322 | */ | 319 | */ |
323 | 320 | ||
324 | } | 321 | } |
322 | //equipmentRelation | ||
323 | @AutoLog(value = "备品备件表-分页列表查询:关联的备品备件") | ||
324 | @ApiOperation(value = "备品备件表-分页列表查询:关联的备品备件", notes = "备品备件表-分页列表查询:关联的备品备件") | ||
325 | @GetMapping(value = "/equipmentRelationList") | ||
326 | public Result<IPage<EquipmentSparepartVO>> queryPageRelationList(EquipmentSparepartSearchVO sparepartSearchVO, | ||
327 | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, | ||
328 | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, | ||
329 | HttpServletRequest req) throws Exception { | ||
330 | Result<IPage<EquipmentSparepartVO>> result = new Result<>(); | ||
331 | Page<EquipmentSparepartVO> page = new Page<EquipmentSparepartVO>(pageNo, pageSize); | ||
332 | IPage<EquipmentSparepartVO> pageList = equipmentSparepartService.queryPageRelationList(page,sparepartSearchVO); | ||
333 | |||
334 | result.setSuccess(true); | ||
335 | result.setResult(pageList); | ||
336 | return result; | ||
337 | |||
338 | } | ||
325 | 339 | ||
326 | /** | 340 | /** |
327 | * 添加 | 341 | * 添加 | ... | ... |
... | @@ -224,6 +224,7 @@ public class EquipmentSparepart { | ... | @@ -224,6 +224,7 @@ public class EquipmentSparepart { |
224 | */ | 224 | */ |
225 | @Excel(name = "仓库id", width = 15) | 225 | @Excel(name = "仓库id", width = 15) |
226 | @ApiModelProperty(value = "仓库id") | 226 | @ApiModelProperty(value = "仓库id") |
227 | @Dict(dictTable = "supplies_warehouse",dicCode = "id",dicText = "warehouse_name") | ||
227 | private String suppliesWarehouseId; | 228 | private String suppliesWarehouseId; |
228 | 229 | ||
229 | /** | 230 | /** |
... | @@ -231,6 +232,7 @@ public class EquipmentSparepart { | ... | @@ -231,6 +232,7 @@ public class EquipmentSparepart { |
231 | */ | 232 | */ |
232 | @Excel(name = "所属厂站", width = 15) | 233 | @Excel(name = "所属厂站", width = 15) |
233 | @ApiModelProperty(value = "所属厂站") | 234 | @ApiModelProperty(value = "所属厂站") |
235 | @Dict(dictTable = "sys_depart",dicCode = "id",dicText = "depart_name") | ||
234 | private String departId; | 236 | private String departId; |
235 | 237 | ||
236 | /** 物料属性 */ | 238 | /** 物料属性 */ | ... | ... |
... | @@ -19,4 +19,12 @@ public interface EquipmentSparepartMapper extends BaseMapper<EquipmentSparepart> | ... | @@ -19,4 +19,12 @@ public interface EquipmentSparepartMapper extends BaseMapper<EquipmentSparepart> |
19 | 19 | ||
20 | //分页检索 | 20 | //分页检索 |
21 | IPage<EquipmentSparepartVO> queryByPage(@Param("page")Page<EquipmentSparepartVO> page, @Param("param") EquipmentSparepartSearchVO sparepartSearchVO); | 21 | IPage<EquipmentSparepartVO> queryByPage(@Param("page")Page<EquipmentSparepartVO> page, @Param("param") EquipmentSparepartSearchVO sparepartSearchVO); |
22 | |||
23 | /*** | ||
24 | * 分页查询:设备关联的备品备件集合 | ||
25 | * @param page | ||
26 | * @param sparepartSearchVO | ||
27 | * @return | ||
28 | */ | ||
29 | IPage<EquipmentSparepartVO> queryPageRelationList(@Param("page")Page<EquipmentSparepartVO> page, @Param("param") EquipmentSparepartSearchVO sparepartSearchVO); | ||
22 | } | 30 | } | ... | ... |
sk-module-equipment/src/main/java/com/skua/modules/equipment/mapper/xml/EquipmentSparepartMapper.xml
... | @@ -19,7 +19,14 @@ | ... | @@ -19,7 +19,14 @@ |
19 | 19 | ||
20 | order by es.inventory_update_time desc | 20 | order by es.inventory_update_time desc |
21 | </select> | 21 | </select> |
22 | <!-- </if> | ||
23 | suppliesWarehouseId--> | ||
24 | 22 | ||
23 | <!-- 分页查询:设备关联的备品备件集合--> | ||
24 | <select id="queryPageRelationList" resultType="com.skua.modules.equipment.vo.EquipmentSparepartVO" > | ||
25 | select es.* from equipment_relation er , equipment_sparepart es | ||
26 | where er.sparepart_id = es.id and er.info_id = #{param.infoId} | ||
27 | <if test="param.sparepartCode != null and param.sparepartCode !=''">and es.sparepart_code like '%' #{param.sparepartCode}'%'</if> | ||
28 | <if test="param.sparepartName != null and param.sparepartName !=''">and es.sparepart_name like '%' #{param.sparepartName}'%'</if> | ||
29 | <if test="param.specification != null and param.specification !=''">and es.specification like '%' #{param.specification}'%'</if> | ||
30 | order by es.inventory_update_time desc | ||
31 | </select> | ||
25 | </mapper> | 32 | </mapper> | ... | ... |
... | @@ -13,7 +13,7 @@ public interface IDrugConsumptionAnalysisService { | ... | @@ -13,7 +13,7 @@ public interface IDrugConsumptionAnalysisService { |
13 | //数据展示 | 13 | //数据展示 |
14 | DrugConsumptionDisplayVO dataDisplay(String time, String departId); | 14 | DrugConsumptionDisplayVO dataDisplay(String time, String departId); |
15 | 15 | ||
16 | //总药耗趋势 | 16 | //总药耗趋势--->改为吨水药费用 |
17 | List<DrugConsumptionTrendChartVO> drugConsumptionTrend(String time, String departId); | 17 | List<DrugConsumptionTrendChartVO> drugConsumptionTrend(String time, String departId); |
18 | //吨水药耗趋势 | 18 | //吨水药耗趋势 |
19 | List<DrugConsumptionTrendChartVO> consumptionTonOfWaterTrend(String time,String departId); | 19 | List<DrugConsumptionTrendChartVO> consumptionTonOfWaterTrend(String time,String departId); | ... | ... |
sk-module-equipment/src/main/java/com/skua/modules/equipment/service/IEquipmentSparepartService.java
... | @@ -18,4 +18,11 @@ public interface IEquipmentSparepartService extends IService<EquipmentSparepart> | ... | @@ -18,4 +18,11 @@ public interface IEquipmentSparepartService extends IService<EquipmentSparepart> |
18 | 18 | ||
19 | IPage<EquipmentSparepartVO> queryByPage(Page<EquipmentSparepartVO> page, EquipmentSparepartSearchVO sparepartSearchVO); | 19 | IPage<EquipmentSparepartVO> queryByPage(Page<EquipmentSparepartVO> page, EquipmentSparepartSearchVO sparepartSearchVO); |
20 | 20 | ||
21 | /*** | ||
22 | * 分页查询:设备关联的备品备件 | ||
23 | * @param page | ||
24 | * @param sparepartSearchVO | ||
25 | * @return | ||
26 | */ | ||
27 | IPage<EquipmentSparepartVO> queryPageRelationList(Page<EquipmentSparepartVO> page, EquipmentSparepartSearchVO sparepartSearchVO); | ||
21 | } | 28 | } | ... | ... |
1 | package com.skua.modules.equipment.service.impl; | 1 | package com.skua.modules.equipment.service.impl; |
2 | 2 | ||
3 | import com.google.common.collect.Maps; | ||
4 | import com.skua.common.constant.ReportConstant; | 3 | import com.skua.common.constant.ReportConstant; |
5 | import com.skua.common.report.ReportViewUtil; | 4 | import com.skua.common.report.ReportViewUtil; |
6 | import com.skua.core.context.SpringContextUtils; | 5 | import com.skua.core.context.SpringContextUtils; |
7 | import com.skua.core.util.ConvertUtils; | 6 | import com.skua.core.util.ConvertUtils; |
8 | import com.skua.modules.common.vo.DateVO; | 7 | import com.skua.modules.common.vo.DateVO; |
9 | import com.skua.modules.equipment.dto.*; | ||
10 | import com.skua.modules.equipment.mapper.ComprehensiveSupervisionMapper; | ||
11 | import com.skua.modules.equipment.service.IDrugConsumptionAnalysisService; | 8 | import com.skua.modules.equipment.service.IDrugConsumptionAnalysisService; |
12 | import com.skua.modules.equipment.vo.CorrelationAnalysisVO; | 9 | import com.skua.modules.equipment.vo.CorrelationAnalysisVO; |
13 | import com.skua.modules.equipment.vo.DrugConsumptionDisplayVO; | 10 | import com.skua.modules.equipment.vo.DrugConsumptionDisplayVO; |
14 | import com.skua.modules.equipment.vo.DrugConsumptionTrendChartVO; | 11 | import com.skua.modules.equipment.vo.DrugConsumptionTrendChartVO; |
15 | import com.skua.modules.equipment.vo.MetricVo; | ||
16 | import lombok.extern.slf4j.Slf4j; | 12 | import lombok.extern.slf4j.Slf4j; |
17 | import org.apache.shiro.dao.DataAccessException; | ||
18 | import org.springframework.beans.factory.annotation.Autowired; | ||
19 | import org.springframework.jdbc.core.BeanPropertyRowMapper; | 13 | import org.springframework.jdbc.core.BeanPropertyRowMapper; |
20 | import org.springframework.jdbc.core.JdbcTemplate; | 14 | import org.springframework.jdbc.core.JdbcTemplate; |
21 | import org.springframework.stereotype.Service; | 15 | import org.springframework.stereotype.Service; |
... | @@ -24,7 +18,6 @@ import java.math.BigDecimal; | ... | @@ -24,7 +18,6 @@ import java.math.BigDecimal; |
24 | import java.text.ParseException; | 18 | import java.text.ParseException; |
25 | import java.text.SimpleDateFormat; | 19 | import java.text.SimpleDateFormat; |
26 | import java.util.*; | 20 | import java.util.*; |
27 | import java.util.stream.Collectors; | ||
28 | 21 | ||
29 | @Slf4j | 22 | @Slf4j |
30 | @Service | 23 | @Service |
... | @@ -81,14 +74,37 @@ public class DrugConsumptionAnalusisServiceImpl implements IDrugConsumptionAnaly | ... | @@ -81,14 +74,37 @@ public class DrugConsumptionAnalusisServiceImpl implements IDrugConsumptionAnaly |
81 | 74 | ||
82 | return displayVO; | 75 | return displayVO; |
83 | } | 76 | } |
84 | //总药耗趋势 | 77 | //总药耗趋势--->吨水药费 |
85 | public List<DrugConsumptionTrendChartVO> drugConsumptionTrend(String time, String departId){ | 78 | public List<DrugConsumptionTrendChartVO> drugConsumptionTrend(String time, String departId){ |
79 | List<DrugConsumptionTrendChartVO> chartVOList = new ArrayList<>(); | ||
86 | //查询当前时间往前推12个月的数据 | 80 | //查询当前时间往前推12个月的数据 |
87 | String startTime=this.getMonthBytime(-25,time)+"-01"; | 81 | String startTime=this.getMonthBytime(-25,time)+"-01"; |
88 | String endTime=this.getMonthBytime(-1,time)+"-31"; | 82 | String endTime=this.getMonthBytime(-1,time)+"-31"; |
89 | 83 | ||
90 | String dataViewName3a24 = ReportViewUtil.buildView(ReportConstant.view3a24,"PAMZ ,PAMF,PAMRJ,SCLPAMZ,SCLPAMF,NACLO,PACGT,PACYT,FESO4G,FESO4Y,H2O2,CH3COOH,SH,FECL3,HXT,PFS,CH3COONA,GXCLJ,YWL,RYXNJ,FHTY", departId, startTime,endTime); | 84 | String dataViewName4411 = ReportViewUtil.buildView(ReportConstant.view4411,"YYH", departId, startTime,endTime); |
91 | System.out.println("dataViewName3a24 ="+dataViewName3a24); | 85 | String sql = "select sum(aaa.yyh) yyh,aaa.time from ( "+ dataViewName4411+") aaa group by aaa.time"; |
86 | List<Map<String, Object> > dataList = getJdbcTemplate().queryForList(sql); | ||
87 | |||
88 | Map<String, String> dataMap = new HashMap<>(); | ||
89 | if(dataList != null ){ | ||
90 | for (Map<String,Object> map : dataList){ | ||
91 | dataMap.put(map.get("time")+"", ConvertUtils.getString(map.get("yyh"),"0")); | ||
92 | } | ||
93 | } | ||
94 | //查询当前时间往前推12个月的数据 | ||
95 | DrugConsumptionTrendChartVO chartVO = null; | ||
96 | List<String> months=this.getTwelve(time); | ||
97 | for (String month : months) { | ||
98 | String yesmonth=this.getMonthBytime(-12,month);//同比 | ||
99 | chartVO = new DrugConsumptionTrendChartVO(); | ||
100 | chartVO.setTime( month ); | ||
101 | chartVO.setZyh( ConvertUtils.getDouble(dataMap.get(month),0d) ); | ||
102 | chartVO.setTbzyh( ConvertUtils.getDouble(dataMap.get(yesmonth),0d) ); | ||
103 | chartVOList.add( chartVO ) ; | ||
104 | } | ||
105 | return chartVOList; | ||
106 | /* String dataViewName3a24 = ReportViewUtil.buildView(ReportConstant.view3a24,"PAMZ ,PAMF,PAMRJ,SCLPAMZ,SCLPAMF,NACLO,PACGT,PACYT,FESO4G,FESO4Y,H2O2,CH3COOH,SH,FECL3,HXT,PFS,CH3COONA,GXCLJ,YWL,RYXNJ,FHTY", departId, startTime,endTime); | ||
107 | |||
92 | StringBuffer sql2 = new StringBuffer("select DATE_FORMAT(aaa.time,'%Y-%m') 'time', "); | 108 | StringBuffer sql2 = new StringBuffer("select DATE_FORMAT(aaa.time,'%Y-%m') 'time', "); |
93 | sql2.append(" round((aaa.PAMZ + aaa.PAMF+ aaa.PAMRJ+ aaa.SCLPAMZ+ aaa.SCLPAMF+ aaa.NACLO+ aaa.PACGT+ aaa.PACYT+ aaa.FESO4G+ aaa.FESO4Y+ aaa.H2O2+ aaa.CH3COOH+ aaa.SH+ aaa.FECL3+ aaa.HXT+ aaa.PFS+ aaa.CH3COONA+ aaa.GXCLJ+ aaa.YWL+ aaa.RYXNJ+ aaa.FHTY),2) 'zyh' from "); | 109 | sql2.append(" round((aaa.PAMZ + aaa.PAMF+ aaa.PAMRJ+ aaa.SCLPAMZ+ aaa.SCLPAMF+ aaa.NACLO+ aaa.PACGT+ aaa.PACYT+ aaa.FESO4G+ aaa.FESO4Y+ aaa.H2O2+ aaa.CH3COOH+ aaa.SH+ aaa.FECL3+ aaa.HXT+ aaa.PFS+ aaa.CH3COONA+ aaa.GXCLJ+ aaa.YWL+ aaa.RYXNJ+ aaa.FHTY),2) 'zyh' from "); |
94 | sql2.append( " "+dataViewName3a24+" aaa group by DATE_FORMAT(aaa.time,'%Y-%m')"); | 110 | sql2.append( " "+dataViewName3a24+" aaa group by DATE_FORMAT(aaa.time,'%Y-%m')"); |
... | @@ -120,7 +136,7 @@ public class DrugConsumptionAnalusisServiceImpl implements IDrugConsumptionAnaly | ... | @@ -120,7 +136,7 @@ public class DrugConsumptionAnalusisServiceImpl implements IDrugConsumptionAnaly |
120 | } | 136 | } |
121 | chartVOList1.add( chartVOTemp) ; | 137 | chartVOList1.add( chartVOTemp) ; |
122 | } | 138 | } |
123 | return chartVOList1; | 139 | return chartVOList1;*/ |
124 | } | 140 | } |
125 | 141 | ||
126 | //吨水药耗趋势 | 142 | //吨水药耗趋势 | ... | ... |
... | @@ -26,10 +26,19 @@ public class EquipmentSparepartServiceImpl extends ServiceImpl<EquipmentSparepar | ... | @@ -26,10 +26,19 @@ public class EquipmentSparepartServiceImpl extends ServiceImpl<EquipmentSparepar |
26 | /*** | 26 | /*** |
27 | * 分页查询 | 27 | * 分页查询 |
28 | * @param page | 28 | * @param page |
29 | * @param equipmentSparepartDTO | 29 | * @param sparepartSearchVO |
30 | * @return | 30 | * @return |
31 | */ | 31 | */ |
32 | public IPage<EquipmentSparepartVO> queryByPage(Page<EquipmentSparepartVO> page, EquipmentSparepartSearchVO sparepartSearchVO){ | 32 | public IPage<EquipmentSparepartVO> queryByPage(Page<EquipmentSparepartVO> page, EquipmentSparepartSearchVO sparepartSearchVO){ |
33 | return baseMapper.queryByPage(page,sparepartSearchVO); | 33 | return baseMapper.queryByPage(page,sparepartSearchVO); |
34 | } | 34 | } |
35 | /*** | ||
36 | * 分页查询:设备关联的备品备件 | ||
37 | * @param page | ||
38 | * @param sparepartSearchVO | ||
39 | * @return | ||
40 | */ | ||
41 | public IPage<EquipmentSparepartVO> queryPageRelationList(Page<EquipmentSparepartVO> page, EquipmentSparepartSearchVO sparepartSearchVO){ | ||
42 | return baseMapper.queryPageRelationList(page,sparepartSearchVO); | ||
43 | } | ||
35 | } | 44 | } | ... | ... |
... | @@ -15,6 +15,10 @@ public class EquipmentSparepartSearchVO { | ... | @@ -15,6 +15,10 @@ public class EquipmentSparepartSearchVO { |
15 | @ApiModelProperty(value = "厂站") | 15 | @ApiModelProperty(value = "厂站") |
16 | private String departId; | 16 | private String departId; |
17 | 17 | ||
18 | |||
19 | @ApiModelProperty(value = "设备编号") | ||
20 | private String infoId; | ||
21 | |||
18 | @ApiModelProperty(value = "物料类别编号") | 22 | @ApiModelProperty(value = "物料类别编号") |
19 | private String sparepartType; | 23 | private String sparepartType; |
20 | 24 | ... | ... |
-
请 注册 或 登录 后发表评论