commit
ed0263178f
|
@ -18,21 +18,21 @@ public interface ExamineMapper {
|
||||||
|
|
||||||
@Select("select * from uf_examine_config")
|
@Select("select * from uf_examine_config")
|
||||||
@CollectionMappings({
|
@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({
|
@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();
|
List<ExamineConfig> queryApiConfig();
|
||||||
|
|
||||||
@Select("select * from uf_examine_config_dt1 where mainid = #{mainId}")
|
@Select("select * from uf_examine_config_dt1 where mainid = #{mainId}")
|
||||||
@CollectionMethod(1)
|
@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}")
|
@Select("select * from uf_zjgjxkhzbk where zbbh = #{configCode}")
|
||||||
@CollectionMethod(2)
|
@AssociationMethod(2)
|
||||||
@ToLowerCase
|
@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 " +
|
@Select("select mode.*,cus.field7 position,cus.field8 coefficient " +
|
||||||
"from $t{tableName} mode " +
|
"from $t{tableName} mode " +
|
||||||
|
|
|
@ -100,12 +100,22 @@ public class NormalTest extends BaseTest {
|
||||||
param.put("zzgxd",4);
|
param.put("zzgxd",4);
|
||||||
param.put("hjjb","A");
|
param.put("hjjb","A");
|
||||||
param.put("hjdj",1);
|
param.put("hjdj",1);
|
||||||
//String script = " cglx != null && !''.equals(cglx)";
|
List<Object> list = new ArrayList<>();
|
||||||
String script = " if (hjjb == 'A' && hjdj == 1) {x = 4}";
|
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);
|
boolean invokeVar = (Boolean) ScriptUtil.invokeScript(script, param);
|
||||||
System.out.println(invokeVar);
|
System.out.println(invokeVar);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testTx() throws IOException {
|
||||||
|
ExamineSchedule examineSchedule = new ExamineSchedule();
|
||||||
|
examineSchedule.setScoreModeId("136");
|
||||||
|
examineSchedule.runCode();
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testReport1() throws FileNotFoundException {
|
public void testReport1() throws FileNotFoundException {
|
||||||
BankService bankService = new BankService();
|
BankService bankService = new BankService();
|
||||||
|
|
Loading…
Reference in New Issue