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
|
|
|
|
-
|
|
|
|
|
|
|
|
public CommonResponse<Void> createGuaranteedMiniProgram(GuaranteedParam guaranteedParam) {
|
|
public CommonResponse<Void> createGuaranteedMiniProgram(GuaranteedParam guaranteedParam) {
|
|
if (isInvalidGuaranteedParam(guaranteedParam)) {
|
|
if (isInvalidGuaranteedParam(guaranteedParam)) {
|
|
@@ -294,6 +198,13 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
|
|
}
|
|
}
|
|
|
|
|
|
private void addGuaranteesVideo(String date, Long staffId, List<Long> videoIds) {
|
|
private void addGuaranteesVideo(String date, Long staffId, List<Long> videoIds) {
|
|
|
|
+ GuaranteesVideoExample example = new GuaranteesVideoExample();
|
|
|
|
+ example.createCriteria().andIsDeleteEqualTo(0).andDateEqualTo(date).andStaffIdEqualTo(staffId);
|
|
|
|
+ List<GuaranteesVideo> guaranteesVideos = guaranteesVideoMapper.selectByExample(example);
|
|
|
|
+ for (GuaranteesVideo guaranteesVideo : guaranteesVideos) {
|
|
|
|
+ guaranteesVideo.setIsDelete(1);
|
|
|
|
+ guaranteesVideoMapper.updateByPrimaryKeySelective(guaranteesVideo);
|
|
|
|
+ }
|
|
GuaranteesVideo guaranteesVideo = new GuaranteesVideo();
|
|
GuaranteesVideo guaranteesVideo = new GuaranteesVideo();
|
|
guaranteesVideo.setDate(date);
|
|
guaranteesVideo.setDate(date);
|
|
guaranteesVideo.setStaffId(staffId);
|
|
guaranteesVideo.setStaffId(staffId);
|
|
@@ -304,7 +215,7 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
|
|
@Override
|
|
@Override
|
|
public GuaranteedParam getGuaranteedVideo(String date) {
|
|
public GuaranteedParam getGuaranteedVideo(String date) {
|
|
GuaranteesVideoExample example = new GuaranteesVideoExample();
|
|
GuaranteesVideoExample example = new GuaranteesVideoExample();
|
|
- example.createCriteria().andDateEqualTo(date);
|
|
+ example.createCriteria().andDateEqualTo(date).andIsDeleteEqualTo(0);
|
|
List<GuaranteesVideo> guaranteesVideos = guaranteesVideoMapper.selectByExample(example);
|
|
List<GuaranteesVideo> guaranteesVideos = guaranteesVideoMapper.selectByExample(example);
|
|
if (CollectionUtils.isEmpty(guaranteesVideos)) {
|
|
if (CollectionUtils.isEmpty(guaranteesVideos)) {
|
|
LarkRobotUtil.sendMessage("获保底视频空,@薛一鸣");
|
|
LarkRobotUtil.sendMessage("获保底视频空,@薛一鸣");
|