|
|
@@ -45,7 +45,7 @@ public class BjLonmServiceImpl implements IBjLonmService {
|
|
|
/**
|
|
|
* 分页查询通报事项清单列表
|
|
|
*
|
|
|
- * @param bo 查询条件
|
|
|
+ * @param bo 查询条件
|
|
|
* @return 通报事项清单分页列表
|
|
|
*/
|
|
|
@Override
|
|
|
@@ -64,7 +64,7 @@ public class BjLonmServiceImpl implements IBjLonmService {
|
|
|
*
|
|
|
* @param bo 查询条件
|
|
|
* @return 通报事项清单列表
|
|
|
-// */
|
|
|
+ */
|
|
|
@Override
|
|
|
public List<BjLonmVo> queryList(BjLonmBo bo) {
|
|
|
// LambdaQueryWrapper<BjLonm> lqw = buildQueryWrapper(bo);
|
|
|
@@ -88,11 +88,11 @@ public class BjLonmServiceImpl implements IBjLonmService {
|
|
|
}
|
|
|
validEntityBeforeSave(add);
|
|
|
boolean flag = baseMapper.insert(add) > 0;
|
|
|
- if (flag) {
|
|
|
+// if (flag) {
|
|
|
// bo.setNotifiedMattersId(add.getNotifiedMattersId());
|
|
|
- baseMapper.batchInsertBjLonmMiddle(notifiedMattersId,
|
|
|
- Collections.singletonList(bo.getLonmMiddle()));
|
|
|
- }
|
|
|
+// baseMapper.batchInsertBjLonmMiddle(notifiedMattersId,
|
|
|
+// Collections.singletonList(bo.getLonmMiddle()));
|
|
|
+// }
|
|
|
return flag;
|
|
|
}
|
|
|
|
|
|
@@ -110,9 +110,7 @@ public class BjLonmServiceImpl implements IBjLonmService {
|
|
|
boolean f = baseMapper.updateById(update) > 0;
|
|
|
if (f) {
|
|
|
baseMapper.deleteBjLonmMiddle(Collections.singletonList(bo.getNotifiedMattersId()));
|
|
|
-
|
|
|
- baseMapper.batchInsertBjLonmMiddle(bo.getNotifiedMattersId(), Collections.singletonList(bo.getLonmMiddle()));
|
|
|
-
|
|
|
+// baseMapper.batchInsertBjLonmMiddle(bo.getNotifiedMattersId(), Collections.singletonList(bo.getLonmMiddle()));
|
|
|
}
|
|
|
return f;
|
|
|
}
|
|
|
@@ -138,7 +136,7 @@ public class BjLonmServiceImpl implements IBjLonmService {
|
|
|
//TODO 做一些业务上的校验,判断是否需要校验
|
|
|
}
|
|
|
boolean f = baseMapper.deleteBatchIds(ids) > 0;
|
|
|
- if (f){
|
|
|
+ if (f) {
|
|
|
baseMapper.deleteBjLonmMiddle(ids.stream().toList());
|
|
|
}
|
|
|
return f;
|
|
|
@@ -153,7 +151,7 @@ public class BjLonmServiceImpl implements IBjLonmService {
|
|
|
public int changeInventoryStatus(String id, String status) {
|
|
|
BjLonm bjLonm = baseMapper.selectById(id);
|
|
|
int i;
|
|
|
- if (bjLonm != null){
|
|
|
+ if (bjLonm != null) {
|
|
|
|
|
|
// List<RemoteDictDataVo> bjNlReleasedStatus = remoteDictService.selectDictDataByType("bj_nl_released_status");
|
|
|
//
|
|
|
@@ -166,7 +164,7 @@ public class BjLonmServiceImpl implements IBjLonmService {
|
|
|
bjLonm1.setReleaseStatus(status);
|
|
|
i = baseMapper.updateById(bjLonm1);
|
|
|
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
throw new RuntimeException("获取数据异常,请重试!");
|
|
|
}
|
|
|
return i;
|