parent
23b123da53
commit
c17a9ead32
|
|
@ -21,7 +21,7 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getNcDirectiveList" resultType="com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServer">
|
<select id="getNcDirectiveList" resultType="com.nu.modules.NuBizNuCustomerServer.entity.NuBizNuCustomerServer">
|
||||||
select a.package_id,b.*,
|
select a.package_id,a.cycle_type,a.cycle_value,b.*,
|
||||||
c.category_name AS category_name,
|
c.category_name AS category_name,
|
||||||
d.type_name AS type_name,
|
d.type_name AS type_name,
|
||||||
e.instruction_name AS instruction_name,
|
e.instruction_name AS instruction_name,
|
||||||
|
|
|
||||||
|
|
@ -183,10 +183,10 @@
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
<insert id="saveDirectives">
|
<insert id="saveDirectives">
|
||||||
INSERT INTO nu_package_directive (package_id, directive_id, sort)
|
INSERT INTO nu_package_directive (package_id, directive_id, sort,cycle_type,cycle_value)
|
||||||
VALUES
|
VALUES
|
||||||
<foreach collection="package.getDirectives()" item="directive" separator=",">
|
<foreach collection="package.getDirectives()" item="directive" separator=",">
|
||||||
(#{package.id}, #{directive.id}, #{directive.sort})
|
(#{package.id}, #{directive.id}, #{directive.sort}, #{directive.cycleTypeShow}, #{directive.cycleTypeValue})
|
||||||
</foreach>
|
</foreach>
|
||||||
</insert>
|
</insert>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
|
|
@ -89,7 +89,7 @@ public class ConfigServiceDirectiveController extends JeecgController<ConfigServ
|
||||||
customeRuleMap.put("izReimbursement", QueryRuleEnum.LIKE_WITH_OR);
|
customeRuleMap.put("izReimbursement", QueryRuleEnum.LIKE_WITH_OR);
|
||||||
customeRuleMap.put("izPreferential", QueryRuleEnum.LIKE_WITH_OR);
|
customeRuleMap.put("izPreferential", QueryRuleEnum.LIKE_WITH_OR);
|
||||||
customeRuleMap.put("chargingFrequency", QueryRuleEnum.LIKE_WITH_OR);
|
customeRuleMap.put("chargingFrequency", QueryRuleEnum.LIKE_WITH_OR);
|
||||||
customeRuleMap.put("cycleType", QueryRuleEnum.LIKE_WITH_OR);
|
customeRuleMap.put("cycleType", QueryRuleEnum.IN);
|
||||||
customeRuleMap.put("izEnabled", QueryRuleEnum.LIKE_WITH_OR);
|
customeRuleMap.put("izEnabled", QueryRuleEnum.LIKE_WITH_OR);
|
||||||
QueryWrapper<ConfigServiceDirective> queryWrapper = QueryGenerator.initQueryWrapper(configServiceDirective, req.getParameterMap(), customeRuleMap);
|
QueryWrapper<ConfigServiceDirective> queryWrapper = QueryGenerator.initQueryWrapper(configServiceDirective, req.getParameterMap(), customeRuleMap);
|
||||||
queryWrapper.select("id");
|
queryWrapper.select("id");
|
||||||
|
|
|
||||||
|
|
@ -321,4 +321,8 @@ public class ConfigServiceDirective implements Serializable {
|
||||||
private boolean ownExist;//本平台是否存在该指令
|
private boolean ownExist;//本平台是否存在该指令
|
||||||
@TableField(exist = false)
|
@TableField(exist = false)
|
||||||
private boolean targetExist;//目标平台是否存在该指令
|
private boolean targetExist;//目标平台是否存在该指令
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String cycleTypeShow;
|
||||||
|
@TableField(exist = false)
|
||||||
|
private String cycleTypeValue;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue