diff --git a/src/main/java/com/cm/population/service/correct/impl/CorrectServiceImpl.java b/src/main/java/com/cm/population/service/correct/impl/CorrectServiceImpl.java index 0584756..95a5f4c 100644 --- a/src/main/java/com/cm/population/service/correct/impl/CorrectServiceImpl.java +++ b/src/main/java/com/cm/population/service/correct/impl/CorrectServiceImpl.java @@ -51,7 +51,11 @@ public class CorrectServiceImpl extends AbstractService implements ICorrectServi String correctId = UUIDUtil.getUUID(); Map params = HashMapUtil.objectToMap(correctVO); params.put("correctId", correctId); - setSaveInfo(params); + if(StringUtils.isEmpty(token)) { + setSaveInfo(params); + }else{ + setSaveInfo(token, params); + } correctDao.save(params); return correctId; } diff --git a/src/main/java/com/cm/population/service/petition/impl/PetitionServiceImpl.java b/src/main/java/com/cm/population/service/petition/impl/PetitionServiceImpl.java index 8482e73..4a368dc 100644 --- a/src/main/java/com/cm/population/service/petition/impl/PetitionServiceImpl.java +++ b/src/main/java/com/cm/population/service/petition/impl/PetitionServiceImpl.java @@ -59,7 +59,6 @@ public class PetitionServiceImpl extends AbstractService implements IPetitionSer }else{ setSaveInfo(token, params); } - petitionDao.save(params); return petitionId; } diff --git a/src/main/java/com/cm/population/service/populationinfo/impl/PopulationInfoServiceImpl.java b/src/main/java/com/cm/population/service/populationinfo/impl/PopulationInfoServiceImpl.java index 70945b1..015596e 100644 --- a/src/main/java/com/cm/population/service/populationinfo/impl/PopulationInfoServiceImpl.java +++ b/src/main/java/com/cm/population/service/populationinfo/impl/PopulationInfoServiceImpl.java @@ -160,7 +160,11 @@ public class PopulationInfoServiceImpl extends AbstractService implements IPopul } Map params = HashMapUtil.objectToMap(populationInfoVO); params.put("populationInfoId", populationInfoId); - setSaveInfo(params); + if(StringUtils.isEmpty(token)) { + setSaveInfo(params); + }else{ + setSaveInfo(token, params); + } populationInfoDao.save(params);// return populationInfoId; } diff --git a/src/main/java/com/cm/population/service/release/impl/ReleaseServiceImpl.java b/src/main/java/com/cm/population/service/release/impl/ReleaseServiceImpl.java index f5f509d..79f27ce 100644 --- a/src/main/java/com/cm/population/service/release/impl/ReleaseServiceImpl.java +++ b/src/main/java/com/cm/population/service/release/impl/ReleaseServiceImpl.java @@ -51,7 +51,11 @@ public class ReleaseServiceImpl extends AbstractService implements IReleaseServi String releaseId = UUIDUtil.getUUID(); Map params = HashMapUtil.objectToMap(releaseVO); params.put("releaseId", releaseId); - setSaveInfo(params); + if(StringUtils.isEmpty(token)) { + setSaveInfo(params); + }else{ + setSaveInfo(token, params); + } releaseDao.save(params); return releaseId; }