| | |
| | | import com.dsh.guns.modular.system.util.BigDecimalToChineseAmountUtil; |
| | | import com.dsh.guns.modular.system.util.ResultUtil; |
| | | import io.swagger.models.auth.In; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.bouncycastle.math.raw.Mod; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | public String index(Model model) { |
| | | Integer objectType = UserExt.getUser().getObjectType(); |
| | | model.addAttribute("objectType",objectType); |
| | | model.addAttribute("isSuperAdmin", "admin".equalsIgnoreCase(UserExt.getUser().getAccount())); |
| | | List<TCity> list = cityService.list(new LambdaQueryWrapper<TCity>().eq(TCity::getParentId, 0)); |
| | | model.addAttribute("list",list); |
| | | return PREFIX + "tStudent.html"; |
| | |
| | | @RequestMapping("/listcom/{id}") |
| | | @ResponseBody |
| | | public List<Map<String,Object>> listcom(@PathVariable("id") Integer id) { |
| | | |
| | | List<Map<String,Object>> maps = studentClient.listCom(id); |
| | | |
| | | List<Map<String,Object>> maps = studentClient.listCom(id); |
| | | return maps; |
| | | } |
| | | |
| | |
| | | |
| | | public ResultUtil update(@RequestBody TStudent tStudent) { |
| | | List<String> strings = new ArrayList<>(); |
| | | if (!tStudent.getImage1().isEmpty()){ |
| | | // 编辑页不回显加密手机号;未填写表示保持原手机号,避免把空值或密文写回账户库。 |
| | | if (StringUtils.isBlank(tStudent.getPhone())) { |
| | | tStudent.setPhone(null); |
| | | } |
| | | if (StringUtils.isNotBlank(tStudent.getImage1())){ |
| | | strings.add(tStudent.getImage1()); |
| | | } |
| | | if (!tStudent.getImage2().isEmpty()){ |
| | | if (StringUtils.isNotBlank(tStudent.getImage2())){ |
| | | strings.add(tStudent.getImage2()); |
| | | } |
| | | if (!tStudent.getImage3().isEmpty()){ |
| | | if (StringUtils.isNotBlank(tStudent.getImage3())){ |
| | | strings.add(tStudent.getImage3()); |
| | | } |
| | | String result = String.join(";", strings); |