刘帅
2026-09-21 696daad0798c29631ccda2d98ca52eedcbf2fcb4
cloud-server-management/src/main/java/com/dsh/guns/modular/system/controller/system/TStudentController.java
@@ -33,6 +33,7 @@
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;
@@ -137,6 +138,7 @@
    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";
@@ -647,13 +649,17 @@
    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);