对空值的判断

This commit is contained in:
wulin 2020-12-16 18:10:02 +08:00
parent 46e3a99147
commit bdc3cfce1d

View File

@ -191,9 +191,14 @@ public class AssessManagerController extends AbstractController{
@GetMapping("assess/manager/Urging")
@ApiOperation("一键催办")
@ApiResponses({@ApiResponse(code = 200,message = "成功")})
public R assessToScore(@RequestParam Map<String, Long> params){
Long startId = params.get("startId");
Long flowProcess = params.get("flowProcess");
public R assessToScore(@RequestParam Map<String, String> params){
log.info("接受的至{}", params);
Long startId = Long.parseLong(params.get("startId"));
Long flowProcess = null;
if(params.containsKey("flowProcess")){
flowProcess = Long.parseLong(params.get("flowProcess"));
}
try {
Long userId = getUserId();
log.info("一键催办" + userId);