连表查询

This commit is contained in:
钱涛 2022-03-12 13:21:27 +08:00
parent 3a09014291
commit 3abcf90ee2
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,7 @@ public class TaxRateListCmd extends AbstractCommonCommand<Map<String, Object>> {
Map<String, Object> apidatas = new HashMap<String, Object>(16);
String sql = " from hrsa_sys_tax_rate_base s " +
String sql = "from (select create_time,creator,delete_type, description, id, name, system_type, tenant_key, update_time from hrsa_sys_tax_rate_base s " +
" where s.delete_type = 0";
//模糊查询
String name = Util.null2String(params.get("name"));
@ -48,6 +48,7 @@ public class TaxRateListCmd extends AbstractCommonCommand<Map<String, Object>> {
if (StringUtils.isNotBlank(name)) {
sql += " and b.name like '%" + name + "%' ";
}
sql += ") t";
SalaryWeaTable<TaxRateTableVO> table = new SalaryWeaTable<TaxRateTableVO>(user, TaxRateTableVO.class);
table.setSqlform(sql);