|
@@ -915,6 +915,16 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
}
|
|
|
List<InLnstLrxx> res = new ArrayList<>();
|
|
|
List<String> jmZjhm = Stream.of(zwywLrJbxx.getLrJmzjhm().split(",")).collect(Collectors.toList());
|
|
|
+ String jgId = "";
|
|
|
+ try {
|
|
|
+ jgId = SecurityUtils.getJgId();
|
|
|
+ } catch (Exception e) {
|
|
|
+ throw new ServiceException("食堂信息有误,请重新登录试试");
|
|
|
+ }
|
|
|
+ Map<String, String> yc = zwywLrJbxxMapper.getJgYc(jgId);
|
|
|
+ if (ObjectUtils.isEmpty(yc) || !yc.containsKey("is_srje") || !yc.containsKey("isyh") || !yc.containsKey("yhcs")) {
|
|
|
+ throw new ServiceException("食堂信息有误,请重新登录");
|
|
|
+ }
|
|
|
for (String j: jmZjhm) {
|
|
|
String mchnt = SecurityUtils.getLoginUser().getSysUser().getMchnt();
|
|
|
if (StringUtils.isEmpty(mchnt)) {
|
|
@@ -929,15 +939,10 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
query.setLrHjdz(lr.getLrHjdz().substring(0, 6));
|
|
|
query.setLrCsrq(lr.getLrCsrq());
|
|
|
query.setAge(String.valueOf(DateUtils.getCurrentAge(DateUtils.dateTime(YYYYMMDD, lr.getLrCsrq()))));
|
|
|
- String jgId = "";
|
|
|
- try {
|
|
|
- jgId = SecurityUtils.getJgId();
|
|
|
- } catch (Exception e) {
|
|
|
- throw new ServiceException("食堂信息有误,请重新登录试试");
|
|
|
- }
|
|
|
query.setCreateUnit(jgId);
|
|
|
- String isyc = zwywLrJbxxMapper.getYc(jgId);
|
|
|
- String yhcs = zwywLrJbxxMapper.getYhcs(jgId);
|
|
|
+ String isyc = yc.get("isyh");
|
|
|
+ String yhcs = yc.get("yhcs");
|
|
|
+ String free = yc.get("is_srje");
|
|
|
if (StringUtils.isEmpty(yhcs)) {
|
|
|
yhcs = "0";
|
|
|
}
|
|
@@ -951,7 +956,6 @@ public class ZwywLrJbxxServiceImpl implements IZwywLrJbxxService {
|
|
|
} catch (Exception ignored) {}
|
|
|
List<Map<String, Object>> tcList = zwywLrJbxxMapper.selectTcByJgId(query);
|
|
|
List<Map<String, Object>> inputTc = new ArrayList<>();
|
|
|
- String free = zwywLrJbxxMapper.getFreeByJgId(query);
|
|
|
for (Map<String, Object> tc: tcList) {
|
|
|
if (ObjectUtils.isNotEmpty(tc) && tc.containsKey("yhlx")) {
|
|
|
if (StringUtils.equals("2200001", btlx) || StringUtils.equals("220000", btlx)) {
|