瀏覽代碼

修改参数类型

LAPTOP-063L2NVL\dong 5 年之前
父節點
當前提交
627c10198f

+ 4 - 4
src/main/java/com/unissoft/grainManage/service/impl/GrainConditionRecordServiceImpl.java

@@ -203,12 +203,12 @@ public class GrainConditionRecordServiceImpl extends ServiceImpl<GrainConditionR
203
     @Override
203
     @Override
204
     public List<GrainConditionRecord> getByRoleTime(PageParam pageParam) {
204
     public List<GrainConditionRecord> getByRoleTime(PageParam pageParam) {
205
 
205
 
206
-        String houseId = null;
207
-        String depotId = null;
206
+        Integer houseId = null;
207
+        Integer depotId = null;
208
         if (!StringUtils.isEmpty(pageParam.getCondition())) {
208
         if (!StringUtils.isEmpty(pageParam.getCondition())) {
209
             JSONObject object = new JSONObject(pageParam.getCondition());
209
             JSONObject object = new JSONObject(pageParam.getCondition());
210
-             houseId = object.optString("house_id").trim();
211
-             depotId = object.optString("depot_id").trim();
210
+             houseId = object.optInt("house_id");
211
+             depotId = object.optInt("depot_id");
212
         }
212
         }
213
         List<GrainConditionRecord> list = grainConditionRecordMapper.getByCheckPersonAndCheckTime(houseId,depotId);
213
         List<GrainConditionRecord> list = grainConditionRecordMapper.getByCheckPersonAndCheckTime(houseId,depotId);
214
         for (GrainConditionRecord conditionRecord : list) {
214
         for (GrainConditionRecord conditionRecord : list) {

+ 1 - 1
src/main/java/com/unissoft/mapper/GrainConditionRecordMapper.java

@@ -16,7 +16,7 @@ import java.util.List;
16
  */
16
  */
17
 public interface GrainConditionRecordMapper extends BaseMapper<GrainConditionRecord> {
17
 public interface GrainConditionRecordMapper extends BaseMapper<GrainConditionRecord> {
18
 
18
 
19
-    List<GrainConditionRecord> getByCheckPersonAndCheckTime(String houseId,String depotId);
19
+    List<GrainConditionRecord> getByCheckPersonAndCheckTime(Integer houseId,Integer depotId);
20
    // List<GrainConditionRecord> getByPersonAndTime();
20
    // List<GrainConditionRecord> getByPersonAndTime();
21
     int  getSelectRecordId();
21
     int  getSelectRecordId();
22
 }
22
 }