数据处理

This commit is contained in:
shuo.wang
2025-04-22 19:13:30 +08:00
parent 8de500a42d
commit 73717e669a
5 changed files with 17 additions and 0 deletions

View File

@@ -14,4 +14,5 @@ public interface SignFranchiseMapper extends Mapper<SignFranchiseDO> {
@Param("shopId") Long shopId); @Param("shopId") Long shopId);
List<SignFranchiseDO> selectByShopIds( @Param("list")List<Long> shopIds); List<SignFranchiseDO> selectByShopIds( @Param("list")List<Long> shopIds);
Integer dateHandle();
} }

View File

@@ -6,6 +6,10 @@
set audit_id = #{auditId} set audit_id = #{auditId}
where shop_id = #{shopId} where shop_id = #{shopId}
</update> </update>
<update id="dateHandle">
update xfsg_sign_franchise
set sign_type = 1
</update>
<select id="selectByShopId" resultType="com.cool.store.entity.SignFranchiseDO"> <select id="selectByShopId" resultType="com.cool.store.entity.SignFranchiseDO">
select * select *
from xfsg_sign_franchise from xfsg_sign_franchise

View File

@@ -24,4 +24,5 @@ public interface SignFranchiseService {
*/ */
Boolean rePay(Long shopId); Boolean rePay(Long shopId);
Integer dateHandle();
} }

View File

@@ -396,6 +396,11 @@ public class SignFranchiseServiceImpl implements SignFranchiseService, AuditResu
return true; return true;
} }
@Override
public Integer dateHandle() {
return signFranchiseMapper.dateHandle();
}
private int timeUtils(Date time, String type) { private int timeUtils(Date time, String type) {
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
calendar.setTime(time); calendar.setTime(time);

View File

@@ -40,4 +40,10 @@ public class PCSignFranchiseController {
return ResponseResult.success(signFranchiseService.rePay(shopId)); return ResponseResult.success(signFranchiseService.rePay(shopId));
} }
@ApiOperation("数据处理,全部设置为新签")
@GetMapping("/dateHandle")
public ResponseResult<Integer> dateHandle() {
return ResponseResult.success(signFranchiseService.dateHandle());
}
} }