Compare commits

..

2 Commits

Author SHA1 Message Date
ic_excellent e43060ac2b Merge branch 'dev' of https://gitea.yeyaguitu.cn/ecology/ebu_ecology_dev1 into dev 2023-07-04 13:09:23 +08:00
ic_excellent 8257f56316 功能修改 2023-07-04 13:08:54 +08:00
2 changed files with 18 additions and 8 deletions

View File

@ -18,21 +18,21 @@ public interface ExamineMapper {
@Select("select * from uf_examine_config")
@CollectionMappings({
@CollectionMapping(property = "apiConfigDetailList",column = "id",id = @Id(value = Integer.class,methodId = 1))
@CollectionMapping(property = "examineConfigDetailList",column = "id",id = @Id(value = Integer.class,methodId = 1))
})
@Associations({
@Association(property = "indexInformation",column = "CONFIG_CODE",id = @Id(value = Integer.class,methodId = 2))
@Association(property = "indexInformation",column = "CONFIG_CODE",id = @Id(value = String.class,methodId = 2))
})
List<ExamineConfig> queryApiConfig();
@Select("select * from uf_examine_config_dt1 where mainid = #{mainId}")
@CollectionMethod(1)
ExamineConfigDetail queryDetail(@ParamMapper("mainId") int mainId);
List<ExamineConfigDetail> queryDetail(@ParamMapper("mainId") int mainId);
@Select("select * from uf_examine_config where CONFIG_CODE = #{configCode}")
@CollectionMethod(2)
@Select("select * from uf_zjgjxkhzbk where zbbh = #{configCode}")
@AssociationMethod(2)
@ToLowerCase
Map<String,Object> queryIndexInformation(@ParamMapper("configCode") int configCode);
Map<String,Object> queryIndexInformation(@ParamMapper("configCode") String configCode);
@Select("select mode.*,cus.field7 position,cus.field8 coefficient " +
"from $t{tableName} mode " +

View File

@ -100,12 +100,22 @@ public class NormalTest extends BaseTest {
param.put("zzgxd",4);
param.put("hjjb","A");
param.put("hjdj",1);
//String script = " cglx != null && !''.equals(cglx)";
String script = " if (hjjb == 'A' && hjdj == 1) {x = 4}";
List<Object> list = new ArrayList<>();
list.add("jjgjg");
param.put("list",list);
String script = " list != null && list.size() > 0";
//String script = " if (hjjb == 'A' && hjdj == 1) {x = 4}";
boolean invokeVar = (Boolean) ScriptUtil.invokeScript(script, param);
System.out.println(invokeVar);
}
@Test
public void testTx() throws IOException {
ExamineSchedule examineSchedule = new ExamineSchedule();
examineSchedule.setScoreModeId("136");
examineSchedule.runCode();
}
@Test
public void testReport1() throws FileNotFoundException {
BankService bankService = new BankService();