脚手架v8
This commit is contained in:
parent
0729d8d9a7
commit
faec3b04b9
|
|
@ -64,7 +64,7 @@ public class DemoFormDTO {
|
|||
@FormItem(itemType = WeaFormItemType.BROWSER, browserModule = Constant.MODULE, browserType = "orderTypeBrowser", required = true)
|
||||
}
|
||||
)
|
||||
private String gdlx;
|
||||
private BaseDTO gdlx;
|
||||
|
||||
|
||||
@Form(
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ public class DemoListDTO {
|
|||
private String bt;
|
||||
|
||||
@TableColumn(label = "工单类型", labelId = 0, width = "150")
|
||||
private String gdlxname;
|
||||
private String gdlx;
|
||||
|
||||
@TableColumn(label = "创建日期", labelId = 0, width = "150")
|
||||
|
|
|
|||
|
|
@ -52,9 +52,10 @@ public class PageDemoServiceImpl implements PageDemoService {
|
|||
@Override
|
||||
public WeaTable<DemoListDTO> list(DemoQueryParam queryParam) {
|
||||
|
||||
String sql = "select t.id,t.bt,cjrq,fqr,bm,wtms,wd,ebllk,e.username,d.name as bmName from uf_gdjcxx t " +
|
||||
String sql = "select t.id,t.bt,cjrq,fqr,bm,wtms,wd,ebllk,e.username,d.name as bmName,x.mc as gdlxname from uf_gdjcxx t " +
|
||||
"LEFT JOIN eteams.EMPLOYEE e ON e.id = t.fqr " +
|
||||
"LEFT JOIN eteams.DEPARTMENT d ON d.id = e.department " +
|
||||
"LEFT JOIN uf_gdlx x ON t.gdlx = x.id " +
|
||||
"where t.TENANT_KEY = 'tma3ktp1q7' ";
|
||||
|
||||
ExecuteSqlEntity executeSqlEntity = new ExecuteSqlEntity();
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@
|
|||
<resultMap id="baseMap" type="com.weaver.seconddev.qt.entity.dto.DemoFormDTO">
|
||||
<id column="id" property="id"/>
|
||||
<id column="bt" property="bt"/>
|
||||
<id column="gdlx" property="gdlx"/>
|
||||
<id column="cjrq" property="cjrq"/>
|
||||
<id column="lc" property="lc"/>
|
||||
<id column="wtms" property="wtms"/>
|
||||
|
|
@ -19,10 +18,14 @@
|
|||
<id column="bm" property="id"/>
|
||||
<id column="name" property="name"/>
|
||||
</association>
|
||||
<association property="gdlx" javaType="com.weaver.seconddev.qt.common.BaseDTO">
|
||||
<id column="gdlx" property="id"/>
|
||||
<id column="mc" property="name"/>
|
||||
</association>
|
||||
</resultMap>
|
||||
|
||||
<sql id="BaseColumn">
|
||||
t.id,t.bt,t.cjrq,t.fqr,t.bm,t.wtms,t.wd,t.ebllk,e.username,d.name
|
||||
t.id,t.bt,t.cjrq,t.fqr,t.bm,t.wtms,t.wd,t.ebllk,e.username,d.name,x.mc,t.gdlx,x.mc
|
||||
</sql>
|
||||
|
||||
<select id="getDemoListDTO" resultMap="baseMap">
|
||||
|
|
@ -32,6 +35,7 @@
|
|||
uf_gdjcxx t
|
||||
LEFT JOIN {$publicdb}.EMPLOYEE e ON e.id = t.fqr
|
||||
LEFT JOIN {$publicdb}.DEPARTMENT d ON d.id = e.department
|
||||
LEFT JOIN uf_gdlx x ON t.gdlx = x.id
|
||||
WHERE t.delete_type = 0
|
||||
and t.tenant_key = #{tenantKey}
|
||||
and t.id=#{id}
|
||||
|
|
|
|||
Loading…
Reference in New Issue