| | |
| | | import com.vci.ubcs.starter.web.util.VciBaseUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.collections4.map.CaseInsensitiveMap; |
| | | import org.springblade.core.log.exception.ServiceException; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | |
| | | writeValueAsString = mp.writeValueAsString(dataObject); |
| | | dockingPreApplyForm.setContent(writeValueAsString); |
| | | } catch (JsonProcessingException e) { |
| | | throw new ServiceException("修改申请单数据时转换出错,原因"+e.getMessage()); |
| | | } |
| | | Date date = new Date(); |
| | | dockingPreApplyForm.setLastModifyTime(date); |
| | |
| | | writeValueAsString = mp.writeValueAsString(dataObject); |
| | | dockingPreApplyForm.setContent(writeValueAsString); |
| | | } catch (JsonProcessingException e) { |
| | | throw new ServiceException("新增申请单数据时数据转换出错,原因"+e.getMessage()); |
| | | } |
| | | Date date = new Date(); |
| | | dockingPreApplyForm.setCreateTime(date); |
| | |
| | | } |
| | | }); |
| | | } else { |
| | | Date date = new Date(); |
| | | editDockingPreApplyFormMap.forEach((key, dockingPreApplyForm) -> { |
| | | dockingPreApplyForm.setCode("2"); |
| | | dockingPreApplyForm.setMsg("修改:" + msg); |
| | | dockingPreApplyForm.setContent(""); |
| | | dockingPreApplyForm.setGroupCode(""); |
| | | Date date = new Date(); |
| | | dockingPreApplyForm.setLastModifyTime(date); |
| | | dockingPreApplyForm.setTs(date); |
| | | dockingPreApplyForm.setLastModifier(Func.isBlank(AuthUtil.getUserAccount()) ? applyCodeUserAccount:AuthUtil.getUserAccount()); |
| | |
| | | dockingPreApplyForm.setMsg("修改:" + msg); |
| | | dockingPreApplyForm.setContent(""); |
| | | dockingPreApplyForm.setGroupCode(""); |
| | | Date date = new Date(); |
| | | dockingPreApplyForm.setCreateTime(date); |
| | | dockingPreApplyForm.setLastModifyTime(date); |
| | | dockingPreApplyForm.setTs(date); |