| | |
| | | import java.util.Calendar; |
| | | import java.util.List; |
| | | |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.project.domain.BaseOnlyvalue; |
| | | import com.ruoyi.project.service.IBaseOnlyvalueService; |
| | | import com.ruoyi.web.controller.common.OnlyValueCommon; |
| | |
| | | @PostMapping |
| | | @RepeatSubmit |
| | | public AjaxResult add(@RequestBody ServiceExternalperson serviceExternalperson) { |
| | | if (StringUtils.isEmpty(serviceExternalperson.getUserno())) { |
| | | String zj = onlyValueCommon.addOnlyValue("zj"); |
| | | String formattedNumber = String.format("%05d", zj); |
| | | serviceExternalperson.setUserno(formattedNumber); |
| | | } |
| | | return toAjax(serviceExternalpersonService.save(serviceExternalperson)); |
| | | } |
| | | |