|
@@ -4,6 +4,7 @@ import java.util.List;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import javax.servlet.http.HttpServletResponse;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
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.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
@@ -86,7 +87,7 @@ public class SettledMerchantsController extends BaseController
|
|
@PreAuthorize("@ss.hasPermi('system:merchants:add')")
|
|
@PreAuthorize("@ss.hasPermi('system:merchants:add')")
|
|
@Log(title = "入驻商家", businessType = BusinessType.INSERT)
|
|
@Log(title = "入驻商家", businessType = BusinessType.INSERT)
|
|
@PostMapping
|
|
@PostMapping
|
|
- public AjaxResult add(@RequestBody SettledMerchants settledMerchants)
|
|
|
|
|
|
+ public AjaxResult add(@Validated @RequestBody SettledMerchants settledMerchants)
|
|
{
|
|
{
|
|
return toAjax(settledMerchantsService.insertSettledMerchants(settledMerchants));
|
|
return toAjax(settledMerchantsService.insertSettledMerchants(settledMerchants));
|
|
}
|
|
}
|
|
@@ -97,7 +98,7 @@ public class SettledMerchantsController extends BaseController
|
|
@PreAuthorize("@ss.hasPermi('system:merchants:edit')")
|
|
@PreAuthorize("@ss.hasPermi('system:merchants:edit')")
|
|
@Log(title = "入驻商家", businessType = BusinessType.UPDATE)
|
|
@Log(title = "入驻商家", businessType = BusinessType.UPDATE)
|
|
@PutMapping
|
|
@PutMapping
|
|
- public AjaxResult edit(@RequestBody SettledMerchants settledMerchants)
|
|
|
|
|
|
+ public AjaxResult edit(@Validated @RequestBody SettledMerchants settledMerchants)
|
|
{
|
|
{
|
|
return toAjax(settledMerchantsService.updateSettledMerchants(settledMerchants));
|
|
return toAjax(settledMerchantsService.updateSettledMerchants(settledMerchants));
|
|
}
|
|
}
|