连表查询
This commit is contained in:
parent
3a09014291
commit
3abcf90ee2
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue