Commit c989df31 by 宋珺琪

保存经纬度 参数调整 flag

parent b306c9ec
...@@ -68,26 +68,30 @@ public class AsjController { ...@@ -68,26 +68,30 @@ public class AsjController {
@ApiOperation(value = "点位校验_保存经纬度/不予校验") @ApiOperation(value = "点位校验_保存经纬度/不予校验")
@PostMapping("update") @PostMapping("update")
public MapRestResult UpdateAsjxxByAsjbh(@RequestBody TbStAsj tbStAsj,HttpServletRequest request) { public MapRestResult UpdateAsjxxByAsjbh(@RequestBody TbStAsj tbStAsj,HttpServletRequest request) {
try { if (tbStAsj.getFlag().equals("true")){
//获取request中的用户信息 return MapRestResult.build(200,"flag为true","1","1");
SysUser user = (SysUser)request.getAttribute("user"); }else {
TbAsjJwdInfo tbAsjJwdInfo = new TbAsjJwdInfo(); try {
tbAsjJwdInfo.setAsjbh(tbStAsj.getAsjbh()); //获取request中的用户信息
tbAsjJwdInfo.setGxrXm(user.getTrueName()); SysUser user = (SysUser)request.getAttribute("user");
tbAsjJwdInfo.setGxrDwdm(user.getUnitcode()); TbAsjJwdInfo tbAsjJwdInfo = new TbAsjJwdInfo();
tbAsjJwdInfo.setGxrZjhm(user.getIdentitycard()); tbAsjJwdInfo.setAsjbh(tbStAsj.getAsjbh());
tbAsjJwdInfo.setGxrDwmc(user.getUnitname()); tbAsjJwdInfo.setGxrXm(user.getTrueName());
tbAsjJwdInfo.setSfjyPdbz(tbStAsj.getSfjyPdbz()); tbAsjJwdInfo.setGxrDwdm(user.getUnitcode());
tbAsjJwdInfo.setJyJd(String.valueOf(tbStAsj.getX())); tbAsjJwdInfo.setGxrZjhm(user.getIdentitycard());
tbAsjJwdInfo.setJyWd(String.valueOf(tbStAsj.getY())); tbAsjJwdInfo.setGxrDwmc(user.getUnitname());
if(tbStAsjService.updateJwdinfo(tbAsjJwdInfo)>0&&"1".equals(tbStAsj.getSfjyPdbz())){ tbAsjJwdInfo.setSfjyPdbz(tbStAsj.getSfjyPdbz());
tbStAsjService.updateById(tbStAsj); tbAsjJwdInfo.setJyJd(String.valueOf(tbStAsj.getX()));
tbAsjJwdInfo.setJyWd(String.valueOf(tbStAsj.getY()));
if(tbStAsjService.updateJwdinfo(tbAsjJwdInfo)>0&&"1".equals(tbStAsj.getSfjyPdbz())){
tbStAsjService.updateById(tbStAsj);
}
} catch (Exception e) {
e.printStackTrace();
return MapRestResult.build(201,"修改失败","1",e);
} }
} catch (Exception e) { return MapRestResult.build(200,"修改成功","1","1");
e.printStackTrace();
return MapRestResult.build(201,"修改失败","1",e);
} }
return MapRestResult.build(200,"修改成功","1","1");
} }
@OperLog(message = "获取串并线索组信息",operation = OperationType.QUERY) @OperLog(message = "获取串并线索组信息",operation = OperationType.QUERY)
......
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