数据处理
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -24,4 +24,5 @@ public interface SignFranchiseService {
|
|||||||
*/
|
*/
|
||||||
Boolean rePay(Long shopId);
|
Boolean rePay(Long shopId);
|
||||||
|
|
||||||
|
Integer dateHandle();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
@@ -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());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user