|
@@ -42,6 +42,7 @@ public class BizSellPigApplyServiceImpl extends ServiceImpl<BizSellPigApplyMappe
|
|
|
|
|
|
String current = map.get("current");
|
|
String current = map.get("current");
|
|
String size = map.get("size");
|
|
String size = map.get("size");
|
|
|
|
+
|
|
Page<BizSellPigApply> bizSellPigApplyPage ;
|
|
Page<BizSellPigApply> bizSellPigApplyPage ;
|
|
if (StringUtils.isBlank(current) || StringUtils.isBlank(size)){
|
|
if (StringUtils.isBlank(current) || StringUtils.isBlank(size)){
|
|
bizSellPigApplyPage = new Page<>(1, 10);
|
|
bizSellPigApplyPage = new Page<>(1, 10);
|
|
@@ -50,6 +51,7 @@ public class BizSellPigApplyServiceImpl extends ServiceImpl<BizSellPigApplyMappe
|
|
}
|
|
}
|
|
QueryWrapper<BizSellPigApply> wrapper = new QueryWrapper<>();
|
|
QueryWrapper<BizSellPigApply> wrapper = new QueryWrapper<>();
|
|
wrapper.eq("farm_id",farmId);
|
|
wrapper.eq("farm_id",farmId);
|
|
|
|
+ wrapper.orderByDesc("sell_time");
|
|
//未提交
|
|
//未提交
|
|
if ("1".equals(type)){
|
|
if ("1".equals(type)){
|
|
wrapper.eq("record_status",0);
|
|
wrapper.eq("record_status",0);
|
|
@@ -98,6 +100,11 @@ public class BizSellPigApplyServiceImpl extends ServiceImpl<BizSellPigApplyMappe
|
|
wrapper.eq("record_status",1);
|
|
wrapper.eq("record_status",1);
|
|
bizSellPigApplyVo.setUnderwayNum(this.count(wrapper));
|
|
bizSellPigApplyVo.setUnderwayNum(this.count(wrapper));
|
|
|
|
|
|
|
|
+ wrapper.clear();
|
|
|
|
+ wrapper.eq("farm_id",farmId);
|
|
|
|
+ wrapper.eq("record_status",2);
|
|
|
|
+ bizSellPigApplyVo.setUncommitted(this.count(wrapper));
|
|
|
|
+
|
|
return new Result(ResultCode.SUCCESS,bizSellPigApplyVo);
|
|
return new Result(ResultCode.SUCCESS,bizSellPigApplyVo);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -106,7 +113,7 @@ public class BizSellPigApplyServiceImpl extends ServiceImpl<BizSellPigApplyMappe
|
|
|
|
|
|
|
|
|
|
Map endMap = new HashMap();
|
|
Map endMap = new HashMap();
|
|
- endMap.put("now",1);
|
|
|
|
|
|
+ endMap.put("now",0);
|
|
List list = new ArrayList();
|
|
List list = new ArrayList();
|
|
|
|
|
|
Map map1 = new HashMap();
|
|
Map map1 = new HashMap();
|
|
@@ -144,12 +151,12 @@ public class BizSellPigApplyServiceImpl extends ServiceImpl<BizSellPigApplyMappe
|
|
map1.put("subTitle",sellTime);
|
|
map1.put("subTitle",sellTime);
|
|
if (1 == inspecFlowStatus){
|
|
if (1 == inspecFlowStatus){
|
|
map2.put("subTitle",inspecTime);
|
|
map2.put("subTitle",inspecTime);
|
|
- endMap.put("now",2);
|
|
|
|
|
|
+ endMap.put("now",1);
|
|
}
|
|
}
|
|
if ( 2== inspecFlowStatus){
|
|
if ( 2== inspecFlowStatus){
|
|
map2.put("subTitle",inspecTime);
|
|
map2.put("subTitle",inspecTime);
|
|
map3.put("subTitle",butcherInspecTime);
|
|
map3.put("subTitle",butcherInspecTime);
|
|
- endMap.put("now",3);
|
|
|
|
|
|
+ endMap.put("now",2);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if ( 3== recordStatus){
|
|
if ( 3== recordStatus){
|
|
@@ -157,19 +164,19 @@ public class BizSellPigApplyServiceImpl extends ServiceImpl<BizSellPigApplyMappe
|
|
map2.put("subTitle",inspecTime);
|
|
map2.put("subTitle",inspecTime);
|
|
map3.put("subTitle",butcherInspecTime);
|
|
map3.put("subTitle",butcherInspecTime);
|
|
map4.put("subTitle",butcherTime);
|
|
map4.put("subTitle",butcherTime);
|
|
- endMap.put("now",4);
|
|
|
|
|
|
+ endMap.put("now",3);
|
|
}
|
|
}
|
|
if ( 4==recordStatus){
|
|
if ( 4==recordStatus){
|
|
map1.put("subTitle",sellTime);
|
|
map1.put("subTitle",sellTime);
|
|
map2.put("subTitle","检疫失败");
|
|
map2.put("subTitle","检疫失败");
|
|
- endMap.put("now",2);
|
|
|
|
|
|
+ endMap.put("now",1);
|
|
}
|
|
}
|
|
|
|
|
|
if ( 5==recordStatus){
|
|
if ( 5==recordStatus){
|
|
map1.put("subTitle",sellTime);
|
|
map1.put("subTitle",sellTime);
|
|
map2.put("subTitle",inspecTime);
|
|
map2.put("subTitle",inspecTime);
|
|
map3.put("subTitle","屠宰检疫失败");
|
|
map3.put("subTitle","屠宰检疫失败");
|
|
- endMap.put("now",3);
|
|
|
|
|
|
+ endMap.put("now",2);
|
|
}
|
|
}
|
|
list.add(map1);
|
|
list.add(map1);
|
|
list.add(map2);
|
|
list.add(map2);
|