排产增删改查

This commit is contained in:
2025-07-15 16:14:56 +08:00
parent b717b07049
commit 6b53156e1e
8 changed files with 39 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ import java.util.List;
/**
* 项目排产Service接口
*
* @author liujingchao
* @author ruoyi
* @date 2025-07-15
*/
public interface IOaReportScheduleService {

View File

@@ -22,7 +22,7 @@ import java.util.Collection;
/**
* 项目排产Service业务层处理
*
* @author liujingchao
* @author ruoyi
* @date 2025-07-15
*/
@RequiredArgsConstructor
@@ -70,6 +70,10 @@ public class OaReportScheduleServiceImpl implements IOaReportScheduleService {
lqw.eq(StringUtils.isNotBlank(bo.getHeader()), OaReportSchedule::getHeader, bo.getHeader());
lqw.eq(StringUtils.isNotBlank(bo.getContactPhone()), OaReportSchedule::getContactPhone, bo.getContactPhone());
lqw.eq(bo.getDeliveryStatus() != null, OaReportSchedule::getDeliveryStatus, bo.getDeliveryStatus());
lqw.eq(bo.getDeliveryId() != null, OaReportSchedule::getDeliveryId, bo.getDeliveryId());
lqw.eq(bo.getDeliveryTime() != null, OaReportSchedule::getDeliveryTime, bo.getDeliveryTime());
lqw.eq(StringUtils.isNotBlank(bo.getAccessory()), OaReportSchedule::getAccessory, bo.getAccessory());
lqw.eq(bo.getSort() != null, OaReportSchedule::getSort, bo.getSort());
lqw.eq(bo.getStatus() != null, OaReportSchedule::getStatus, bo.getStatus());
return lqw;
}
@@ -82,6 +86,9 @@ public class OaReportScheduleServiceImpl implements IOaReportScheduleService {
OaReportSchedule add = BeanUtil.toBean(bo, OaReportSchedule.class);
validEntityBeforeSave(add);
boolean flag = baseMapper.insert(add) > 0;
if (flag) {
bo.setScheduleId(add.getScheduleId());
}
return flag;
}