liurunyu
2024-07-15 5e2faddb34e79918b73dc75aca8f63048dd4526d
pipIrr-platform/pipIrr-web/pipIrr-web-sell/src/main/java/com/dy/pipIrrSell/client/ClientSv.java
@@ -2,11 +2,10 @@
import com.dy.common.webUtil.QueryResultVo;
import com.dy.pipIrrGlobal.daoBa.BaDistrictMapper;
import com.dy.pipIrrGlobal.daoBa.BaSettingsMapper;
import com.dy.pipIrrGlobal.daoSe.SeClientMapper;
import com.dy.pipIrrGlobal.daoSe.SeCodeVerifyMapper;
import com.dy.pipIrrGlobal.daoSe.SeOpenIdMapper;
import com.dy.pipIrrGlobal.pojoSe.SeClient;
import com.dy.pipIrrGlobal.pojoSe.SeCodeVerify;
import com.dy.pipIrrGlobal.pojoSe.SeOpenId;
import com.dy.pipIrrGlobal.voSe.VoClient;
import lombok.extern.slf4j.Slf4j;
@@ -34,7 +33,7 @@
    private BaDistrictMapper baDistrictMapper;
    @Autowired
    private SeCodeVerifyMapper seCodeVerifyMapper;
    private BaSettingsMapper baSettingsMapper;
    @Autowired
    private SeOpenIdMapper seOpenIdMapper;
@@ -74,26 +73,9 @@
     * @return
     */
    public Integer addClient(SeClient po) {
        return seClientMapper.insert(po);
        return seClientMapper.insertSelective(po);
    }
    /**
     * 添加验证码记录
     * @param po
     * @return
     */
    public Integer addCodeVerify(SeCodeVerify po) {
        return seCodeVerifyMapper.insert(po);
    }
    /**
     * 根据手机号获取验证码验证对象
     * @param phoneNumber
     * @return
     */
    public SeCodeVerify getCodeVerify(String phoneNumber) {
        return seCodeVerifyMapper.getCodeVerify(phoneNumber);
    }
    /**
     * 根据6位区划串模糊查询农户编号
     * @param district6
@@ -154,6 +136,15 @@
    }
    /**
     * 根据配置项获取配置项值
     * @param itemName
     * @return
     */
    public String getItemValue(String itemName) {
        return baSettingsMapper.getItemValue(itemName);
    }
    /**
     * 根据电话号码获取农户ID
     * @param phoneNumber
     * @return
@@ -169,6 +160,7 @@
     */
    public Long addOpenId(SeOpenId po) {
        seOpenIdMapper.insert(po);
        return po.getClientId();
        //return po.getClientId();
        return po.getId();
    }
}