正在显示
2 个修改的文件
包含
5 行增加
和
0 行删除
@@ -162,6 +162,7 @@ public class InformationBaseServiceImpl implements InformationBaseService { | @@ -162,6 +162,7 @@ public class InformationBaseServiceImpl implements InformationBaseService { | ||
162 | String[] split = ids.split(","); | 162 | String[] split = ids.split(","); |
163 | for (String s : split) { | 163 | for (String s : split) { |
164 | Synthesize_no_1 synthesize_no_1 = no_1Service.getById(s); | 164 | Synthesize_no_1 synthesize_no_1 = no_1Service.getById(s); |
165 | + String projectName = synthesize_no_1.getProjectName(); | ||
165 | synthesize_no_1.setId(null); | 166 | synthesize_no_1.setId(null); |
166 | synthesize_no_1.setTime(new Date()); | 167 | synthesize_no_1.setTime(new Date()); |
167 | synthesize_no_1.setNewTime(new Date()); | 168 | synthesize_no_1.setNewTime(new Date()); |
@@ -169,6 +170,7 @@ public class InformationBaseServiceImpl implements InformationBaseService { | @@ -169,6 +170,7 @@ public class InformationBaseServiceImpl implements InformationBaseService { | ||
169 | synthesize_no_1.setUserId(UserContext.get().getId()); | 170 | synthesize_no_1.setUserId(UserContext.get().getId()); |
170 | synthesize_no_1.setDeleteState("3"); | 171 | synthesize_no_1.setDeleteState("3"); |
171 | synthesize_no_1.setModelCase(null); | 172 | synthesize_no_1.setModelCase(null); |
173 | + synthesize_no_1.setProjectName(projectName+"[副本]"); | ||
172 | no_1Service.save(synthesize_no_1); | 174 | no_1Service.save(synthesize_no_1); |
173 | Synthesize_no_1Img synthesize_no_1Img = synthesize_no_1ImgMapper.selectById(s); | 175 | Synthesize_no_1Img synthesize_no_1Img = synthesize_no_1ImgMapper.selectById(s); |
174 | if (!StringUtils.isEmpty(synthesize_no_1Img)) { | 176 | if (!StringUtils.isEmpty(synthesize_no_1Img)) { |
synthesize_energy_api/src/main/java/com/synthesize_energy/item/web/service/impl/UserServiceImpl.java
@@ -56,6 +56,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us | @@ -56,6 +56,9 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements Us | ||
56 | String sign = JwtUtil.sign(user); | 56 | String sign = JwtUtil.sign(user); |
57 | map.put("token",sign); | 57 | map.put("token",sign); |
58 | map.put("state",user.getStatus()); | 58 | map.put("state",user.getStatus()); |
59 | + map.put("userName",user.getName()); | ||
60 | + map.put("companyName",user.getCompanyName()); | ||
61 | + map.put("department",user.getDepartment()); | ||
59 | return map; | 62 | return map; |
60 | } | 63 | } |
61 | } | 64 | } |
-
请 注册 或 登录 后发表评论