作者 kgy

na

@@ -32,6 +32,7 @@ public class No3_1_1GetTypeListener { @@ -32,6 +32,7 @@ public class No3_1_1GetTypeListener {
32 List<Synthesize_no_2_1> synthesize_no_2_1s = event.getSynthesize_no_2_1s(); 32 List<Synthesize_no_2_1> synthesize_no_2_1s = event.getSynthesize_no_2_1s();
33 /** 33 /**
34 * 对数据进行判断 34 * 对数据进行判断
  35 + *
35 */ 36 */
36 for (Synthesize_no_2_1 synthesize_no_2_1 : synthesize_no_2_1s) { 37 for (Synthesize_no_2_1 synthesize_no_2_1 : synthesize_no_2_1s) {
37 boolean flag = false; 38 boolean flag = false;
@@ -42,6 +42,8 @@ public class MyController { @@ -42,6 +42,8 @@ public class MyController {
42 42
43 private final Synthesize_no_1ClientNameService synthesize_no_1ClientNameService; 43 private final Synthesize_no_1ClientNameService synthesize_no_1ClientNameService;
44 44
  45 +
  46 +
45 private final Synthesize_no_1ClientNameMapper synthesize_no_1ClientNameMapper; 47 private final Synthesize_no_1ClientNameMapper synthesize_no_1ClientNameMapper;
46 48
47 @PostMapping("found") 49 @PostMapping("found")
@@ -42,7 +42,7 @@ import java.util.stream.Collectors; @@ -42,7 +42,7 @@ import java.util.stream.Collectors;
42 */ 42 */
43 @Service 43 @Service
44 @Slf4j 44 @Slf4j
45 -//@Transactional(rollbackFor = Exception.class) 45 +@Transactional(rollbackFor = Exception.class)
46 public class ProjectServiceImpl implements ProjectService { 46 public class ProjectServiceImpl implements ProjectService {
47 47
48 @Autowired 48 @Autowired
@@ -270,9 +270,9 @@ public class ProjectServiceImpl implements ProjectService { @@ -270,9 +270,9 @@ public class ProjectServiceImpl implements ProjectService {
270 } 270 }
271 271
272 @Override 272 @Override
273 - @Transactional(propagation = Propagation.SUPPORTS) 273 + //@Transactional(propagation = Propagation.SUPPORTS)
274 public No_3_1Tall_Dto no3_1_1GetType(String id) { 274 public No_3_1Tall_Dto no3_1_1GetType(String id) {
275 - Synthesize_no_1 byId = no_1Service.getById(id); 275 + Synthesize_no_1 byId = no_1Service.getById(id);
276 byId.setCountState("1"); 276 byId.setCountState("1");
277 no_1Service.updateById(byId); 277 no_1Service.updateById(byId);
278 String[] split = byId.getEnergyType().split(",");// 1供电 2供热 3供冷 4热水 278 String[] split = byId.getEnergyType().split(",");// 1供电 2供热 3供冷 4热水
1 spring: 1 spring:
2 profiles: 2 profiles:
3 #开发时使用下面注释 3 #开发时使用下面注释
4 - active: dev 4 +# active: dev
5 # 打包时使用下面注释 5 # 打包时使用下面注释
6 -# active: dev2 6 + active: prod
7 7
8 8