update 右侧标准抽屉字典
This commit is contained in:
+2
-1
@@ -513,7 +513,8 @@ public class LawsCommonServiceImpl implements ILawsCommonService {
|
|||||||
throw new JeroBootException(ResultCommon.EMPTY_COMMON, FieldCommon.YEAR_NUMBER);
|
throw new JeroBootException(ResultCommon.EMPTY_COMMON, FieldCommon.YEAR_NUMBER);
|
||||||
}
|
}
|
||||||
// 最后生成的法规编号
|
// 最后生成的法规编号
|
||||||
standardNumber = standardClass + standardNumber + "-" + yearNumber;
|
standardNumber = standardClass + " " + standardNumber + "-" + yearNumber;
|
||||||
|
|
||||||
parameterMap.put(FieldCommon.STANDARD_NUMBER, standardNumber);
|
parameterMap.put(FieldCommon.STANDARD_NUMBER, standardNumber);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
@@ -1,6 +1,7 @@
|
|||||||
package com.jero.modules.laws.common.vo;
|
package com.jero.modules.laws.common.vo;
|
||||||
|
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
|
import com.jero.common.aspect.annotation.Dict;
|
||||||
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@@ -29,5 +30,6 @@ public class ManyStandardSelectionBox {
|
|||||||
@ApiModelProperty(value = "发布日期")
|
@ApiModelProperty(value = "发布日期")
|
||||||
private java.util.Date releaseDate;
|
private java.util.Date releaseDate;
|
||||||
@ApiModelProperty(value = "标准状态")
|
@ApiModelProperty(value = "标准状态")
|
||||||
|
@Dict(dicCode = "standard_state")
|
||||||
private java.lang.String standardState;
|
private java.lang.String standardState;
|
||||||
}
|
}
|
||||||
|
|||||||
+30
@@ -0,0 +1,30 @@
|
|||||||
|
package com.jero.modules.standard.domestic;
|
||||||
|
|
||||||
|
import com.jero.JeroSystemSingleApplication;
|
||||||
|
import com.jero.modules.laws.standard.entity.LawsDomesticStandard;
|
||||||
|
import com.jero.modules.laws.standard.service.ILawsDomesticStandardService;
|
||||||
|
import org.junit.Test;
|
||||||
|
import org.junit.runner.RunWith;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
import org.springframework.test.context.junit4.SpringRunner;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @Author: liao
|
||||||
|
* @Date: 2023/9/14 17:14
|
||||||
|
* @Description:
|
||||||
|
*/
|
||||||
|
@RunWith(SpringRunner.class)
|
||||||
|
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,classes = JeroSystemSingleApplication.class)
|
||||||
|
public class StandardTest {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private ILawsDomesticStandardService lawsDomesticStandardService;
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void getByIdTest() {
|
||||||
|
LawsDomesticStandard byId = lawsDomesticStandardService.getById("86a75ae628c9485ca002b56551606684");
|
||||||
|
System.out.println(byId);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user