zhongrj
2024-01-27 32e2fa1b3900fcfff235476f4edf5687a98e88e3
任务名称修改
2 files modified
7 ■■■■ changed files
src/main/java/org/springblade/common/constant/DictConstant.java 2 ●●●●● patch | view | raw | blame | history
src/main/java/org/springblade/modules/task/service/impl/TaskHotelReportingServiceImpl.java 5 ●●●● patch | view | raw | blame | history
src/main/java/org/springblade/common/constant/DictConstant.java
@@ -37,6 +37,8 @@
    String HOTEL_SECURITY= "旅馆安全";
    String FIRE_CHECK= "消费检查";
    String DA_JIN_DIAN= "打金店";
    String USED_MOBILE_PHONES= "二手手机维修";
src/main/java/org/springblade/modules/task/service/impl/TaskHotelReportingServiceImpl.java
@@ -23,6 +23,7 @@
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.modules.place.entity.PlaceEntity;
import org.springblade.modules.place.service.IPlaceService;
import org.springblade.modules.system.entity.Dict;
import org.springblade.modules.task.dto.TaskHotelReportingDTO;
import org.springblade.modules.task.entity.TaskHotelReportingEntity;
import org.springblade.modules.task.mapper.TaskHotelReportingMapper;
@@ -61,11 +62,13 @@
    @Override
    public boolean saveHotelReporting(TaskHotelReportingDTO taskHotelReporting) {
        String name = DictConstant.HOTEL_SECURITY;
        // 九小场所
        if (taskHotelReporting.getEventType().equals(1)) {
            taskHotelReporting.setReportType(7);
            name = DictConstant.FIRE_CHECK;
        }
        Long aLong = taskService.saveTask(2, DictConstant.HOTEL_SECURITY, 1, "", AuthUtil.getUserId(), taskHotelReporting.getHouseCode(), taskHotelReporting.getReportType());
        Long aLong = taskService.saveTask(2, name, 1, "", AuthUtil.getUserId(), taskHotelReporting.getHouseCode(), taskHotelReporting.getReportType());
        if (aLong > 0) {
            // 通过houseCode 获取场所id
            QueryWrapper<PlaceEntity> queryWrapper = new QueryWrapper<>();