| | |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.ObjectUtil; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | |
| | | if (rc.getProp().equals("NULLVAL")) { // 空值 |
| | | sqlStr += getConditionSqlStrByNullVal(rc.getCondition()); |
| | | } else if (rc.getProp().equals("TARGET")) { // 指标 |
| | | sqlStr += getConditionSqlStrByTarget(rc.getCondition(), getPropSqlStr(rc.getTarget()), rc.getValue()); |
| | | sqlStr += ObjectUtil.isNotEmpty(rc.getFixValue())? |
| | | getConditionSqlStrByTarget(rc.getCondition(), getPropSqlStr(rc.getTarget()), rc.getValue())+"-"+rc.getFixValue() : |
| | | getConditionSqlStrByTarget(rc.getCondition(), getPropSqlStr(rc.getTarget()), rc.getValue()); |
| | | } else { |
| | | sqlStr += getConditionSqlStrByVal(rc.getCondition(), rc.getValue()); |
| | | } |