fix:问题修复
This commit is contained in:
@@ -131,7 +131,7 @@ public class StoreDao {
|
||||
* @return 门店id->门店
|
||||
*/
|
||||
public Map<String, StoreDO> getStoreMapByStoreIds(List<String> storeIds) {
|
||||
if (CollectionUtils.isNotEmpty(storeIds)) {
|
||||
if (CollectionUtils.isEmpty(storeIds)) {
|
||||
return Collections.emptyMap();
|
||||
}
|
||||
List<StoreDO> storeList = storeMapper.getStoreByStoreIds(storeIds);
|
||||
|
||||
@@ -101,8 +101,9 @@ public class TpApplyFormDAO {
|
||||
example.createCriteria()
|
||||
.andEqualTo("storeId", storeId)
|
||||
.andEqualTo("ruleId", ruleId)
|
||||
.andIn("status", Arrays.asList(TpFormStatusEnum.PASS.getStatus(), TpFormStatusEnum.EFFECTIVE.getStatus()))
|
||||
.andNotEqualTo("type", TpFormTypeEnum.REWARD.getType());
|
||||
.andNotEqualTo("status", TpFormStatusEnum.CANCEL.getStatus())
|
||||
.andIn("type", Arrays.asList(TpFormTypeEnum.WARNING.getType(), TpFormTypeEnum.PENALTY.getType()))
|
||||
.andEqualTo("deleted", 0);
|
||||
return tpApplyFormMapper.selectCountByExample(example);
|
||||
}
|
||||
|
||||
@@ -118,7 +119,9 @@ public class TpApplyFormDAO {
|
||||
Example.Criteria criteria = example.createCriteria()
|
||||
.andEqualTo("storeId", storeId)
|
||||
.andEqualTo("ruleId", ruleId)
|
||||
.andEqualTo("status", TpFormStatusEnum.PENDING.getStatus());
|
||||
.andEqualTo("status", TpFormStatusEnum.PENDING.getStatus())
|
||||
.andEqualTo("isDraft", 0)
|
||||
.andEqualTo("deleted", 0);
|
||||
if (isReward) {
|
||||
criteria.andEqualTo("type", TpFormTypeEnum.REWARD.getType());
|
||||
} else {
|
||||
|
||||
@@ -77,9 +77,12 @@ public class TpAuditRecordDAO {
|
||||
* @param userId 申请人id
|
||||
* @param userName 申请人名称
|
||||
*/
|
||||
public void addRecord(Long applyId, Integer applyType, String userId, String userName) {
|
||||
addSubmitRecord(applyId, applyType, userId, userName);
|
||||
addApproveRecord(applyId, applyType);
|
||||
public void firstAddRecord(Long applyId, Integer applyType, String userId, String userName) {
|
||||
TpAuditRecordDO auditRecordDO = getPendingRecordByApplyId(applyId, applyType);
|
||||
if (Objects.isNull(auditRecordDO)) {
|
||||
addSubmitRecord(applyId, applyType, userId, userName);
|
||||
addApproveRecord(applyId, applyType);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,6 +52,7 @@
|
||||
INNER JOIN store_${enterpriseId} b ON a.store_id = b.store_id AND b.is_delete = 'effective'
|
||||
</if>
|
||||
<where>
|
||||
deleted = 0
|
||||
<if test="applyNo != null and applyNo != ''">
|
||||
AND a.apply_no LIKE CONCAT('%', #{applyNo}, '%')
|
||||
</if>
|
||||
@@ -90,6 +91,7 @@
|
||||
AND b.is_draft = #{isDraft}
|
||||
</if>
|
||||
</where>
|
||||
ORDER BY a.create_time DESC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user