Commit 9f5d8d7a authored by luzhuang's avatar luzhuang

修改接口

parent 76c5764b
...@@ -238,7 +238,7 @@ public class BChapterServiceImpl implements BChapterService { ...@@ -238,7 +238,7 @@ public class BChapterServiceImpl implements BChapterService {
int line = 0; int line = 0;
BFile bFile = new BFile(); BFile bFile = new BFile();
BChapter model = new BChapter(); BChapter model = new BChapter();
if((chapterDTO.getChapterLevel() == 2 && (dto.getFileSize()== null || "".equals(dto.getFileSize())))){ if(chapterDTO.getChapterLevel() == 2 && (dto.getFileSize()== null || "".equals(dto.getFileSize()))){
throw new ServiceException(ResultServiceEnums.FILE_NOT_NULL); throw new ServiceException(ResultServiceEnums.FILE_NOT_NULL);
} }
......
...@@ -55,6 +55,10 @@ public class BPersonValueServiceImpl implements BPersonValueService { ...@@ -55,6 +55,10 @@ public class BPersonValueServiceImpl implements BPersonValueService {
BeanUtils.copyProperties(personValueDto, bPersonValue); BeanUtils.copyProperties(personValueDto, bPersonValue);
UserUtil.setCurrentPersistOperation(bPersonValue); UserUtil.setCurrentPersistOperation(bPersonValue);
if(personValueDto.getValue()==null || "".equals(personValueDto.getValue())){
throw new ServiceException(ResultServiceEnums.VALUE_NOT_NULL);
}
if("0".equals(personValueDto.getType())){ if("0".equals(personValueDto.getType())){
bPersonValue.setEvent("积分发放"); bPersonValue.setEvent("积分发放");
}else if("1".equals(personValueDto.getType())){ }else if("1".equals(personValueDto.getType())){
......
...@@ -150,6 +150,9 @@ public class BReleaseValueServiceImpl implements BReleaseValueService { ...@@ -150,6 +150,9 @@ public class BReleaseValueServiceImpl implements BReleaseValueService {
@Override @Override
public PersistModel updateLessonValue(String businessId, String valueConsume, String valueGain) { public PersistModel updateLessonValue(String businessId, String valueConsume, String valueGain) {
if(valueConsume==null || "".equals(valueConsume) || valueGain == null || "".equals(valueGain)){
throw new ServiceException(ResultServiceEnums.VALUE_NOT_NULL);
}
int line = bReleaseValueRepository.updateLessonValue(businessId, valueConsume, valueGain); int line = bReleaseValueRepository.updateLessonValue(businessId, valueConsume, valueGain);
return new PersistModel(line); return new PersistModel(line);
} }
......
...@@ -233,7 +233,6 @@ public interface ContactFeignClient { ...@@ -233,7 +233,6 @@ public interface ContactFeignClient {
/** /**
* 根据部门ids 获取部门及子部门多有人员id(未去重) * 根据部门ids 获取部门及子部门多有人员id(未去重)
* 获取的id与s_suer中businessId不匹配 需使用accountId 查询出 businessId
*/ */
@RequestMapping(value = "/user/get_sub_userIds_by_dept_ids",method = RequestMethod.POST) @RequestMapping(value = "/user/get_sub_userIds_by_dept_ids",method = RequestMethod.POST)
Ret<List<String>> getSubUserIdsByDeptIds(@RequestBody GetSubUserIdsByDeptIdsReqDTO getSubUserIdsByDeptIdsReqDTO, Ret<List<String>> getSubUserIdsByDeptIds(@RequestBody GetSubUserIdsByDeptIdsReqDTO getSubUserIdsByDeptIdsReqDTO,
......
...@@ -249,6 +249,7 @@ public enum ResultServiceEnums { ...@@ -249,6 +249,7 @@ public enum ResultServiceEnums {
LEARN_LESSON_NOT_EXISTS(149,"未学习该课程"), LEARN_LESSON_NOT_EXISTS(149,"未学习该课程"),
NOT_SIGN_DATE(150,"当前时间不在签到时间范围内"), NOT_SIGN_DATE(150,"当前时间不在签到时间范围内"),
FILE_NOT_NULL(151,"文件内容不能为空"), FILE_NOT_NULL(151,"文件内容不能为空"),
VALUE_NOT_NULL(152,"积分不能为空"),
; ;
private Integer code; private Integer code;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment