|
@@ -17,10 +17,8 @@ import com.ruoyi.gljt.domain.GljtSqLrExport;
|
|
import com.ruoyi.gljt.domain.GljtSqLrImport;
|
|
import com.ruoyi.gljt.domain.GljtSqLrImport;
|
|
import com.ruoyi.gljt.mapper.GljtLscxMapper;
|
|
import com.ruoyi.gljt.mapper.GljtLscxMapper;
|
|
import com.ruoyi.gljt.service.IGljtSqLrService;
|
|
import com.ruoyi.gljt.service.IGljtSqLrService;
|
|
-import com.ruoyi.system.validate.group.AddGroup;
|
|
|
|
import io.seata.common.util.StringUtils;
|
|
import io.seata.common.util.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
@@ -159,7 +157,7 @@ public class GljtSqLrController extends BaseController
|
|
@RequiresPermissions("gljt:gljtLr:add")
|
|
@RequiresPermissions("gljt:gljtLr:add")
|
|
@Log(title = "高龄津贴申请老人信息", businessType = BusinessType.INSERT)
|
|
@Log(title = "高龄津贴申请老人信息", businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
- public AjaxResult add(@Validated({AddGroup.class}) @RequestBody GljtSqLr gljtSqLr)
|
|
|
|
|
|
+ public AjaxResult add(@RequestBody GljtSqLr gljtSqLr)
|
|
{
|
|
{
|
|
return toAjax(gljtSqLrService.insertGljtSqLr(gljtSqLr),gljtSqLr.getId());
|
|
return toAjax(gljtSqLrService.insertGljtSqLr(gljtSqLr),gljtSqLr.getId());
|
|
}
|
|
}
|
|
@@ -177,7 +175,7 @@ public class GljtSqLrController extends BaseController
|
|
@RequiresPermissions("gljt:gljtLr:edit")
|
|
@RequiresPermissions("gljt:gljtLr:edit")
|
|
@Log(title = "高龄津贴申请老人信息", businessType = BusinessType.UPDATE)
|
|
@Log(title = "高龄津贴申请老人信息", businessType = BusinessType.UPDATE)
|
|
@PostMapping("/edit")
|
|
@PostMapping("/edit")
|
|
- public AjaxResult edit(@Validated @RequestBody GljtSqLr gljtSqLr)
|
|
|
|
|
|
+ public AjaxResult edit(@RequestBody GljtSqLr gljtSqLr)
|
|
{
|
|
{
|
|
return toAjax(gljtSqLrService.updateGljtSqLr(gljtSqLr));
|
|
return toAjax(gljtSqLrService.updateGljtSqLr(gljtSqLr));
|
|
}
|
|
}
|