|
@@ -268,21 +268,21 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
public Result listPrc(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) {
|
|
|
String type = paramsMap.get("type");//类型
|
|
|
if ("".equals(type) || null == type) {
|
|
|
- type = "1";
|
|
|
+ type = "0";
|
|
|
}
|
|
|
String farmId = paramsMap.get("farmId");
|
|
|
QueryWrapper<BillPcr> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("farm_id", farmId).eq("pcr_type", 1).eq("test_location_id",TokenSign.getWorkIdByJwtToken(httpServletRequest));
|
|
|
- if ("1".equals(type)) {
|
|
|
+ if ("0".equals(type)) {
|
|
|
queryWrapper.in("bill_status", 0, 1, 2, 3);
|
|
|
}
|
|
|
- if ("2".equals(type)) {
|
|
|
+ if ("1".equals(type)) {
|
|
|
queryWrapper.eq("bill_status", 0);
|
|
|
}
|
|
|
- if ("3".equals(type)) {
|
|
|
+ if ("2".equals(type)) {
|
|
|
queryWrapper.eq("bill_status", 1);
|
|
|
}
|
|
|
- if ("4".equals(type)) {
|
|
|
+ if ("3".equals(type)) {
|
|
|
queryWrapper.in("bill_status", 2, 3);
|
|
|
}
|
|
|
List<BillPcr> billPcrs = pcrMapper.selectList(queryWrapper);
|
|
@@ -428,21 +428,21 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
public Result listIsolate(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) {
|
|
|
String type = paramsMap.get("type");//类型
|
|
|
if ("".equals(type) || null == type) {
|
|
|
- type = "1";
|
|
|
+ type = "0";
|
|
|
}
|
|
|
String farmId = paramsMap.get("farmId");
|
|
|
QueryWrapper<BillIsolate> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("farm_id", farmId).eq("isolate_location_id",TokenSign.getWorkIdByJwtToken(httpServletRequest));
|
|
|
- if ("1".equals(type)) {
|
|
|
+ if ("0".equals(type)) {
|
|
|
queryWrapper.in("bill_status", 0, 1, 2, 3);
|
|
|
}
|
|
|
- if ("2".equals(type)) {
|
|
|
+ if ("1".equals(type)) {
|
|
|
queryWrapper.eq("bill_status", 0);
|
|
|
}
|
|
|
- if ("3".equals(type)) {
|
|
|
+ if ("2".equals(type)) {
|
|
|
queryWrapper.eq("bill_status", 1);
|
|
|
}
|
|
|
- if ("4".equals(type)) {
|
|
|
+ if ("3".equals(type)) {
|
|
|
queryWrapper.in("bill_status", 2, 3);
|
|
|
}
|
|
|
return new Result(ResultCode.SUCCESS, isolateMapper.selectList(queryWrapper));
|
|
@@ -551,21 +551,21 @@ public class BillPersonnelAdmissionServiceImpl extends ServiceImpl<BillPersonnel
|
|
|
public Result listClean(HttpServletRequest httpServletRequest, Map<String, String> paramsMap) {
|
|
|
String type = paramsMap.get("type");//类型
|
|
|
if ("".equals(type) || null == type) {
|
|
|
- type = "1";
|
|
|
+ type = "0";
|
|
|
}
|
|
|
String farmId = paramsMap.get("farmId");
|
|
|
QueryWrapper<BillClean> queryWrapper = new QueryWrapper<>();
|
|
|
queryWrapper.eq("farm_id", farmId).eq("test_location_id",TokenSign.getWorkIdByJwtToken(httpServletRequest));
|
|
|
- if ("1".equals(type)) {
|
|
|
+ if ("0".equals(type)) {
|
|
|
queryWrapper.in("bill_status", 0, 1, 2);
|
|
|
}
|
|
|
- if ("2".equals(type)) {
|
|
|
+ if ("1".equals(type)) {
|
|
|
queryWrapper.eq("bill_status", 0);
|
|
|
}
|
|
|
- if ("3".equals(type)) {
|
|
|
+ if ("2".equals(type)) {
|
|
|
queryWrapper.eq("bill_status", 1);
|
|
|
}
|
|
|
- if ("4".equals(type)) {
|
|
|
+ if ("3".equals(type)) {
|
|
|
queryWrapper.eq("bill_status", 2);
|
|
|
}
|
|
|
return new Result(ResultCode.SUCCESS, cleanMapper.selectList(queryWrapper));
|