收银点
This commit is contained in:
@@ -196,152 +196,5 @@
|
||||
pay_passage_name = #{payPassageName,jdbcType=VARCHAR}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<resultMap id="BaseResultMap" type="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="logo" jdbcType="VARCHAR" property="logo" />
|
||||
<result column="userId" jdbcType="INTEGER" property="userid" />
|
||||
<result column="bindingCode" jdbcType="VARCHAR" property="bindingcode" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="code" jdbcType="VARCHAR" property="code" />
|
||||
<result column="address" jdbcType="VARCHAR" property="address" />
|
||||
<result column="remark" jdbcType="VARCHAR" property="remark" />
|
||||
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
|
||||
<result column="updateTime" jdbcType="TIMESTAMP" property="updatetime" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, logo, userId, bindingCode, name, code, address, remark, createTime, updateTime
|
||||
</sql>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_pluss_merchant_cash_place
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
delete from tb_pluss_merchant_cash_place
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
|
||||
insert into tb_pluss_merchant_cash_place (id, logo, userId,
|
||||
bindingCode, name, code,
|
||||
address, remark, createTime,
|
||||
updateTime)
|
||||
values (#{id,jdbcType=INTEGER}, #{logo,jdbcType=VARCHAR}, #{userid,jdbcType=INTEGER},
|
||||
#{bindingcode,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR},
|
||||
#{address,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP},
|
||||
#{updatetime,jdbcType=TIMESTAMP})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
|
||||
insert into tb_pluss_merchant_cash_place
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="logo != null">
|
||||
logo,
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
userId,
|
||||
</if>
|
||||
<if test="bindingcode != null">
|
||||
bindingCode,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="code != null">
|
||||
code,
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address,
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark,
|
||||
</if>
|
||||
<if test="createtime != null">
|
||||
createTime,
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
updateTime,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="logo != null">
|
||||
#{logo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
#{userid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="bindingcode != null">
|
||||
#{bindingcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="code != null">
|
||||
#{code,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
#{address,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
#{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createtime != null">
|
||||
#{createtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
#{updatetime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
|
||||
update tb_pluss_merchant_cash_place
|
||||
<set>
|
||||
<if test="logo != null">
|
||||
logo = #{logo,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="userid != null">
|
||||
userId = #{userid,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="bindingcode != null">
|
||||
bindingCode = #{bindingcode,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="code != null">
|
||||
code = #{code,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="address != null">
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="remark != null">
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="createtime != null">
|
||||
createTime = #{createtime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="updatetime != null">
|
||||
updateTime = #{updatetime,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.chaozhanggui.dao.system.entity.TbPlussMerchantCashPlace">
|
||||
update tb_pluss_merchant_cash_place
|
||||
set logo = #{logo,jdbcType=VARCHAR},
|
||||
userId = #{userid,jdbcType=INTEGER},
|
||||
bindingCode = #{bindingcode,jdbcType=VARCHAR},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
code = #{code,jdbcType=VARCHAR},
|
||||
address = #{address,jdbcType=VARCHAR},
|
||||
remark = #{remark,jdbcType=VARCHAR},
|
||||
createTime = #{createtime,jdbcType=TIMESTAMP},
|
||||
updateTime = #{updatetime,jdbcType=TIMESTAMP}
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
</mapper>
|
||||
@@ -1768,6 +1768,7 @@ public class HfMerService {
|
||||
|
||||
|
||||
}
|
||||
|
||||
@Autowired
|
||||
TbPlussMerchantCashPlaceMapper merchantCashPlaceMapper;
|
||||
@Autowired
|
||||
@@ -1890,7 +1891,6 @@ public class HfMerService {
|
||||
request.put("accountOpeningPermitId", map.get("accountOpeningPermitId"));//开户许可证图片
|
||||
|
||||
|
||||
|
||||
Map<String, Object> merchantResident = null;
|
||||
try {
|
||||
merchantResident = MerchantResident.auditProfileInfo(request);
|
||||
@@ -2542,6 +2542,8 @@ public class HfMerService {
|
||||
List<TbPlussMerchantBaseInfo> list = merchantBaseInfoMapper.selectListByCode(mcs.getMerchantcode());
|
||||
if (list.size() > 0) {
|
||||
TbPlussMerchantBaseInfo merchantBaseInfo = list.iterator().next();
|
||||
TbPlussUserInfo userInfo = tbPlussUserInfoMapper.selectByPrimaryKey(Long.valueOf(merchantBaseInfo.getUserid()));
|
||||
if (Objects.nonNull(userInfo) && !userInfo.getLoginname().contains("-")) {
|
||||
TbPlussMerchantCashPlace merchantCashPlace = new TbPlussMerchantCashPlace();
|
||||
merchantCashPlace.setAddress(merchantBaseInfo.getAddress());
|
||||
merchantCashPlace.setUserid(merchantBaseInfo.getUserid());
|
||||
@@ -2556,7 +2558,7 @@ public class HfMerService {
|
||||
merchantCashPlace.setRootAccountId(merchantBaseInfo.getUserid());
|
||||
merchantCashPlace.setCode(getCode());
|
||||
merchantCashPlaceMapper.insert(merchantCashPlace);
|
||||
TbPlussUserInfo userInfo = tbPlussUserInfoMapper.selectByPrimaryKey(Long.valueOf(merchantBaseInfo.getUserid()));
|
||||
// TbPlussUserInfo userInfo = tbPlussUserInfoMapper.selectByPrimaryKey(Long.valueOf(merchantBaseInfo.getUserid()));
|
||||
TbPlussUserCashPlace childUserCashPlace = new TbPlussUserCashPlace();
|
||||
childUserCashPlace.setChasplaceId(merchantCashPlace.getId());
|
||||
childUserCashPlace.setCreatetime(new Date());
|
||||
@@ -2566,14 +2568,18 @@ public class HfMerService {
|
||||
childUserCashPlace.setUserId(userInfo.getId().intValue());
|
||||
userCashPlaceMapper.insert(childUserCashPlace);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public String getCode() {
|
||||
String randomDigits = generateRandomDigits(2);
|
||||
String randomLetters = generateRandomLetters(6);
|
||||
String randomString = randomDigits + randomLetters;
|
||||
return randomString;
|
||||
}
|
||||
|
||||
// 生成n位随机数字
|
||||
private static String generateRandomDigits(int n) {
|
||||
Random random = new Random();
|
||||
@@ -2598,6 +2604,7 @@ public class HfMerService {
|
||||
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public void authInfo(String requestId) {
|
||||
TbPlussMerchantAuditRecord record = tbPlussMerchantAuditRecordMapper.selectByApplicationid(requestId);
|
||||
if (ObjectUtil.isNotEmpty(record)) {
|
||||
@@ -2618,9 +2625,6 @@ public class HfMerService {
|
||||
tbPlussMerchantChannelStatusMapper.updateByPrimaryKeySelective(channelStatus);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Map map = null;
|
||||
//上传证照
|
||||
TbPlussMerchantBaseInfo baseInfo = tbPlussMerchantBaseInfoMapper.selectByMerchantcode(record.getMerchantcode());
|
||||
@@ -2672,7 +2676,6 @@ public class HfMerService {
|
||||
}
|
||||
|
||||
|
||||
|
||||
// cz = HfMerService.fileUpload(bankCard.getImgurl(), "05", record.getMerchantid());
|
||||
StringBuffer sb = new StringBuffer();
|
||||
TbPlussMerchantImage image = tbPlussMerchantImageMapper.selectByMerchantCodeType(baseInfo.getMerchantcode(), "06");
|
||||
@@ -2885,7 +2888,6 @@ public class HfMerService {
|
||||
tbPlussMerchantAuditRecordMapper.insert(merchantAuditRecord);
|
||||
|
||||
|
||||
|
||||
tbPlussMerchantHfInfo.setStatus("2"); //商户入驻待审核
|
||||
tbPlussMerchantHfInfo.setUpdateTime(new Date());
|
||||
tbPlussMerchantHfInfoMapper.updateByPrimaryKey(tbPlussMerchantHfInfo);
|
||||
@@ -2899,11 +2901,6 @@ public class HfMerService {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void modifySettle(String userId) {
|
||||
|
||||
|
||||
@@ -2919,7 +2916,6 @@ public class HfMerService {
|
||||
MsgException.checkNull(account, "结算信息未提交");
|
||||
|
||||
|
||||
|
||||
TbPlussBankCard bankCard = tbPlussBankCardMapper.selectByPrimaryKey(Integer.valueOf(account.getBankcardid()));
|
||||
MsgException.checkNull(bankCard, "结算卡信息未提交");
|
||||
|
||||
@@ -2964,9 +2960,6 @@ public class HfMerService {
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@Scheduled(initialDelay = 1000, fixedDelay = 10000)
|
||||
public void queryMerchantResident() {
|
||||
List<TbPlussMerchantAuditRecord> records = tbPlussMerchantAuditRecordMapper.selectByStatus();
|
||||
|
||||
Reference in New Issue
Block a user