Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@ -893,8 +893,12 @@ public class DataLogTools {
|
|||||||
flag = isString?StringUtils.isNotEmpty((String)oldVal):true;
|
flag = isString?StringUtils.isNotEmpty((String)oldVal):true;
|
||||||
}else if(newVal!=null && oldVal==null) {
|
}else if(newVal!=null && oldVal==null) {
|
||||||
flag = isString?StringUtils.isNotEmpty((String)newVal):true;
|
flag = isString?StringUtils.isNotEmpty((String)newVal):true;
|
||||||
}else if(newVal!=null && oldVal!=null && !newVal.equals(oldVal)) {
|
}else if(newVal!=null && oldVal!=null) {
|
||||||
flag = true;
|
if(BigDecimal.class.equals(item.getJavaType())){
|
||||||
|
flag = ((BigDecimal)newVal).compareTo((BigDecimal)oldVal) != 0;
|
||||||
|
}else{
|
||||||
|
flag = !newVal.equals(oldVal);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
change.setOldValue(parseValue(oldVal,item.getJavaType()));
|
change.setOldValue(parseValue(oldVal,item.getJavaType()));
|
||||||
change.setNewValue(parseValue(newVal,item.getJavaType()));
|
change.setNewValue(parseValue(newVal,item.getJavaType()));
|
||||||
@ -1288,7 +1292,4 @@ public class DataLogTools {
|
|||||||
return sql.replaceAll(SQL_PLACEHOLDER,tableName);
|
return sql.replaceAll(SQL_PLACEHOLDER,tableName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
package com.xjrsoft.module.price.dto;
|
package com.xjrsoft.module.price.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import com.pictc.annotations.datalog.*;
|
import com.pictc.annotations.datalog.*;
|
||||||
import com.xjrsoft.common.model.base.BaseModel;
|
import com.xjrsoft.common.model.base.BaseModel;
|
||||||
import io.swagger.annotations.ApiModelProperty;
|
import io.swagger.annotations.ApiModelProperty;
|
||||||
@ -97,6 +98,7 @@ public class UpdateLngPricePurPngAppSuDto extends BaseModel implements Serializa
|
|||||||
*/
|
*/
|
||||||
@LogField(name="价格生效年月",index=10)
|
@LogField(name="价格生效年月",index=10)
|
||||||
@ApiModelProperty("价格生效年月(YYYY-MM格式;日期缺省01)")
|
@ApiModelProperty("价格生效年月(YYYY-MM格式;日期缺省01)")
|
||||||
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||||
private LocalDateTime dateFrom;
|
private LocalDateTime dateFrom;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -41,7 +41,7 @@ public class LngPricePurPngAppSuDtlVo {
|
|||||||
* 基础量/增量(基础量/增量1/增量2)
|
* 基础量/增量(基础量/增量1/增量2)
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty("基础量/增量(基础量/增量1/增量2)")
|
@ApiModelProperty("基础量/增量(基础量/增量1/增量2)")
|
||||||
@Trans(type = TransType.DIC, id = "2007987645607911425", transToFieldName = "priceTypeName")
|
@Trans(type = TransType.DIC, id = "2007987645607911425", transToFieldName = "priceName")
|
||||||
private String priceCode;
|
private String priceCode;
|
||||||
private String priceName;
|
private String priceName;
|
||||||
|
|
||||||
|
|||||||
@ -41,7 +41,7 @@ public class LngPriceSalesPngAppCuDtlVo {
|
|||||||
* 基础量/增量(基础量/增量1/增量2)
|
* 基础量/增量(基础量/增量1/增量2)
|
||||||
*/
|
*/
|
||||||
@ApiModelProperty("基础量/增量(基础量/增量1/增量2)")
|
@ApiModelProperty("基础量/增量(基础量/增量1/增量2)")
|
||||||
@Trans(type = TransType.DIC, id = "2007987645607911425", transToFieldName = "priceTypeName")
|
@Trans(type = TransType.DIC, id = "2007987645607911425", transToFieldName = "priceName")
|
||||||
private String priceCode;
|
private String priceCode;
|
||||||
private String priceName;
|
private String priceName;
|
||||||
|
|
||||||
|
|||||||
@ -97,7 +97,7 @@ public class PricePurPngAppController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UpdateLngPricePurPngAppDto after(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
public UpdateLngPricePurPngAppDto after(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
||||||
execAfter(content.getTableName(), content.getIdValue(), "I");
|
execAfter("lng_price_pur_png", content.getIdValue(), "I");
|
||||||
return content.getObj();
|
return content.getObj();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -130,7 +130,7 @@ public class PricePurPngAppController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UpdateLngPricePurPngAppDto after(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
public UpdateLngPricePurPngAppDto after(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
||||||
execAfter(content.getTableName(), content.getIdValue(), "U");
|
execAfter("lng_price_pur_png", content.getIdValue(), "U");
|
||||||
return content.getObj();
|
return content.getObj();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
@ -140,7 +140,17 @@ public class PricePurPngAppController {
|
|||||||
@ApiOperation(value = "删除")
|
@ApiOperation(value = "删除")
|
||||||
@SaCheckPermission("pricePurPngApp:delete")
|
@SaCheckPermission("pricePurPngApp:delete")
|
||||||
public R delete(@Valid @RequestBody List<Long> ids){
|
public R delete(@Valid @RequestBody List<Long> ids){
|
||||||
return R.ok(dataService.deleteByIds(UpdateLngPricePurPngAppDto.class, ids));
|
return R.ok(dataService.deleteByIds(UpdateLngPricePurPngAppDto.class, ids, new DataOperationListener<UpdateLngPricePurPngAppDto>() {
|
||||||
|
@Override
|
||||||
|
public UpdateLngPricePurPngAppDto before(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UpdateLngPricePurPngAppDto after(DataOperationContent<UpdateLngPricePurPngAppDto> content) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -97,7 +97,7 @@ public class PriceSalesPngAppController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UpdateLngPriceSalesPngAppDto after(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
public UpdateLngPriceSalesPngAppDto after(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
||||||
execAfter(content.getTableName(), content.getIdValue(), "I");
|
execAfter("lng_price_sales_png", content.getIdValue(), "I");
|
||||||
return content.getObj();
|
return content.getObj();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -130,7 +130,7 @@ public class PriceSalesPngAppController {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public UpdateLngPriceSalesPngAppDto after(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
public UpdateLngPriceSalesPngAppDto after(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
||||||
execAfter(content.getTableName(), content.getIdValue(), "U");
|
execAfter("lng_price_sales_png", content.getIdValue(), "U");
|
||||||
return content.getObj();
|
return content.getObj();
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
@ -140,7 +140,17 @@ public class PriceSalesPngAppController {
|
|||||||
@ApiOperation(value = "删除")
|
@ApiOperation(value = "删除")
|
||||||
@SaCheckPermission("priceSalesPngApp:delete")
|
@SaCheckPermission("priceSalesPngApp:delete")
|
||||||
public R delete(@Valid @RequestBody List<Long> ids){
|
public R delete(@Valid @RequestBody List<Long> ids){
|
||||||
return R.ok(dataService.deleteByIds(UpdateLngPriceSalesPngAppDto.class, ids));
|
return R.ok(dataService.deleteByIds(UpdateLngPriceSalesPngAppDto.class, ids, new DataOperationListener<UpdateLngPriceSalesPngAppDto>() {
|
||||||
|
@Override
|
||||||
|
public UpdateLngPriceSalesPngAppDto before(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public UpdateLngPriceSalesPngAppDto after(DataOperationContent<UpdateLngPriceSalesPngAppDto> content) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -22,7 +22,7 @@ public interface LngPricePurPngAppSuMapper extends MPJBaseMapper<LngPricePurPngA
|
|||||||
@Select("SELECT t1.*, t2.k_name AS kName, t3.su_sname AS suName, t7.name as uomName," +
|
@Select("SELECT t1.*, t2.k_name AS kName, t3.su_sname AS suName, t7.name as uomName," +
|
||||||
" t4.full_name AS pointUpName, t5.full_name AS pointDelyName" +
|
" t4.full_name AS pointUpName, t5.full_name AS pointDelyName" +
|
||||||
" FROM lng_price_pur_png_app_su t1" +
|
" FROM lng_price_pur_png_app_su t1" +
|
||||||
" LEFT JOIN lng_contract t2 ON t1.id = t1.k_id" +
|
" LEFT JOIN lng_contract t2 ON t2.id = t1.k_id" +
|
||||||
" LEFT JOIN lng_supplier t3 ON t3.su_code = t1.su_code" +
|
" LEFT JOIN lng_supplier t3 ON t3.su_code = t1.su_code" +
|
||||||
" LEFT JOIN lng_b_station_png t4 ON t4.code = t1.point_up_code" +
|
" LEFT JOIN lng_b_station_png t4 ON t4.code = t1.point_up_code" +
|
||||||
" LEFT JOIN lng_b_station_png t5 ON t5.code = t1.point_dely_code" +
|
" LEFT JOIN lng_b_station_png t5 ON t5.code = t1.point_dely_code" +
|
||||||
|
|||||||
@ -22,7 +22,7 @@ public interface LngPriceSalesPngAppCuMapper extends MPJBaseMapper<LngPriceSales
|
|||||||
@Select("SELECT t1.*, t2.k_name AS kName, t3.cu_sname AS cuName, t7.name as uomName," +
|
@Select("SELECT t1.*, t2.k_name AS kName, t3.cu_sname AS cuName, t7.name as uomName," +
|
||||||
" t5.full_name AS pointDelyName" +
|
" t5.full_name AS pointDelyName" +
|
||||||
" FROM lng_price_sales_png_app_cu t1" +
|
" FROM lng_price_sales_png_app_cu t1" +
|
||||||
" LEFT JOIN lng_contract t2 ON t1.id = t1.k_id" +
|
" LEFT JOIN lng_contract t2 ON t2.id = t1.k_id" +
|
||||||
" LEFT JOIN lng_customer t3 ON t3.cu_code = t1.cu_code" +
|
" LEFT JOIN lng_customer t3 ON t3.cu_code = t1.cu_code" +
|
||||||
" LEFT JOIN lng_b_station_png t5 ON t5.code = t1.point_dely_code" +
|
" LEFT JOIN lng_b_station_png t5 ON t5.code = t1.point_dely_code" +
|
||||||
" LEFT JOIN xjr_dictionary_item t6 ON t6.code = 'LNG_UOM'" +
|
" LEFT JOIN xjr_dictionary_item t6 ON t6.code = 'LNG_UOM'" +
|
||||||
|
|||||||
Reference in New Issue
Block a user