| | |
| | | package cn.huge.module.mediate.controller.client; |
| | | |
| | | import cn.huge.base.common.constant.GzAreaEnum; |
| | | import cn.huge.base.common.constant.GzRegionEnum; |
| | | import cn.huge.base.common.utils.DateUtils; |
| | | import cn.huge.base.common.utils.ReturnFailUtils; |
| | | import cn.huge.base.common.utils.ReturnSucUtils; |
| | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | |
| | | int year = DateUtils.getYear(new Date()); |
| | | String caseNoLogo = caseInfoService.getCaseNoLogo(area); |
| | | if (StringUtils.isEmpty(caseNoLogo)){ |
| | | caseNoLogo = caseInfoService.getCaseNoLogo(GzAreaEnum.GZEnum_0.getIndex()); |
| | | caseNoLogo = caseInfoService.getCaseNoLogo(GzRegionEnum.CITY_1.getIndex()); |
| | | } |
| | | String caseNoPrefix = "(" + year + ")"+caseNoLogo; |
| | | String newCaseNo = caseInfoService.getNewCaseNo(caseNoPrefix); |