md
This commit is contained in:
parent
1905bfcef7
commit
34ff578fa9
@ -0,0 +1,87 @@
|
|||||||
|
|
||||||
|
/**
|
||||||
|
* @Project: emis
|
||||||
|
* @Title: EmisCustomerUserController.java
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-03-01 03:51:54
|
||||||
|
* @Copyright: ShangHai Duta 2022 All rights reserved.
|
||||||
|
* @version v1.0
|
||||||
|
* @Description: <p> 快递客户用户 控制器 </p>
|
||||||
|
*/
|
||||||
|
|
||||||
|
package com.xdadan.erp.oms.web;
|
||||||
|
|
||||||
|
import com.xdadan.erp.oms.common.core.controller.BaseController;
|
||||||
|
import com.xdadan.erp.oms.common.core.domain.AjaxResult;
|
||||||
|
import com.xdadan.erp.oms.common.core.domain.entity.SysOmsUser;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.dao.DuplicateKeyException;
|
||||||
|
import org.springframework.security.access.prepost.PreAuthorize;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import javax.servlet.http.HttpServletResponse;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 快递客户用户Controller
|
||||||
|
*
|
||||||
|
* @author linfso
|
||||||
|
* @date 2024-03-01 03:51:54
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/oms2c/emisCustomerUser")
|
||||||
|
public class Oms2cCustomerUserController extends BaseController
|
||||||
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实名认证
|
||||||
|
* @param emisCustomerUser
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@PostMapping("/idVerification")
|
||||||
|
public AjaxResult idVerification(@RequestBody SysOmsUser emisCustomerUser)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
// EmisCustomerUser oldUser=emisBaseService.getCustomerUserByPhone(emisCustomerUser.getPhone());
|
||||||
|
// if(oldUser!=null){
|
||||||
|
// return AjaxResult.error("该客户电话号码已被占用,请使用新号码");
|
||||||
|
// }
|
||||||
|
// emisCustomerUser.setCustomerType("1");
|
||||||
|
// emisCustomerUser.setSettledType("1");
|
||||||
|
// emisCustomerUser.setUserType("1");
|
||||||
|
// emisCustomerUser.setOwnerSite(getLoginUser().getUser().getOwnerSiteCode());
|
||||||
|
// return toAjax(emisCustomerUserService.insertEmisCustomerUser(emisCustomerUser));
|
||||||
|
return AjaxResult.success("成功");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return AjaxResult.error("数据重复!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 实名认证
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@GetMapping("/getIdVerification")
|
||||||
|
public AjaxResult getIdVerification()
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
// EmisCustomerUser oldUser=emisBaseService.getCustomerUserByPhone(emisCustomerUser.getPhone());
|
||||||
|
// if(oldUser!=null){
|
||||||
|
// return AjaxResult.error("该客户电话号码已被占用,请使用新号码");
|
||||||
|
// }
|
||||||
|
// emisCustomerUser.setCustomerType("1");
|
||||||
|
// emisCustomerUser.setSettledType("1");
|
||||||
|
// emisCustomerUser.setUserType("1");
|
||||||
|
// emisCustomerUser.setOwnerSite(getLoginUser().getUser().getOwnerSiteCode());
|
||||||
|
// return toAjax(emisCustomerUserService.insertEmisCustomerUser(emisCustomerUser));
|
||||||
|
return AjaxResult.success("成功");
|
||||||
|
} catch (Exception e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
return AjaxResult.error("数据重复!");
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user