fuint-application/application-web/src/main/java/com/fuint/application/web/rest/ConfirmerController.java

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

package com.fuint.application.web.rest;

import com.fuint.exception.BusinessCheckException;
import com.fuint.application.BaseController;
import com.fuint.application.ResponseObject;
import com.fuint.application.dao.entities.MtStore;
import com.fuint.application.dao.entities.MtStaff;
import com.fuint.application.enums.StatusEnum;
import com.fuint.application.service.store.StoreService;
import com.fuint.application.service.staff.StaffService;
import com.fuint.application.util.CommonUtil;
import com.fuint.application.util.PhoneFormatCheckUtils;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 核销人员controller
 * Created by FSQ
 * Contact wx fsq_better
 * Site https://www.fuint.cn
 */
@RestController
@RequestMapping(value = "/rest/confirmer")
public class ConfirmerController extends BaseController{

    @Autowired
    private StaffService staffService;

    @Autowired
    private StoreService storeService;

    /**
     * 员工信息录入
     */
    @RequestMapping(value = "/doAdd", method = RequestMethod.POST)
    @CrossOrigin
    public ResponseObject doAdd(HttpServletRequest request, HttpServletResponse response, Model model) throws BusinessCheckException{
        String mobile = CommonUtil.replaceXSS(request.getParameter("mobile"));
        String storeID = request.getParameter("storeID");

        response.setCharacterEncoding("UTF-8");

        String realName;
        try {
            realName = URLDecoder.decode(request.getParameter("realName"), "UTF-8");
        } catch (UnsupportedEncodingException e) {
            try {
                realName = new String(request.getParameter("realName").getBytes("ISO-8859-1"), "utf-8").toString();
后面还有 58 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。